alr 0.0.14
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.idea
|
||||
.gigaide
|
33
alr-bin/alr.sh
Normal file
33
alr-bin/alr.sh
Normal file
@ -0,0 +1,33 @@
|
||||
name='alr-bin'
|
||||
version='0.0.14'
|
||||
release='1'
|
||||
desc='Any Linux Repository'
|
||||
homepage='https://gitea.plemya-x.ru/Plemya-x/ALR'
|
||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
||||
license=('GPL-3.0-or-later')
|
||||
provides=('alr')
|
||||
conflicts=('alr' 'alr-bin' 'alr-git')
|
||||
|
||||
sources=("https://gitea.plemya-x.ru/Plemya-x/ALR/releases/download/v${version}/alr-${version}-linux-x86_64.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
scripts=(
|
||||
['postinstall']='postinstall.sh'
|
||||
)
|
||||
|
||||
prepare() {
|
||||
cd $srcdir
|
||||
}
|
||||
|
||||
package() {
|
||||
install-binary alr
|
||||
install-completion bash alr < ./completions/alr
|
||||
install-completion zsh alr < ./completions/_alr
|
||||
}
|
||||
|
||||
files() {
|
||||
echo ./usr/bin/alr
|
||||
echo ./usr/share/bash-completion/completions/alr
|
||||
echo ./usr/share/zsh/site-functions/_alr
|
||||
}
|
6
alr-bin/postinstall.sh
Normal file
6
alr-bin/postinstall.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
useradd -r -s /usr/sbin/nologin alr
|
||||
mkdir -p /var/cache/alr /etc/alr
|
||||
chown -R alr:alr /var/cache/alr
|
||||
setcap cap_setuid,cap_setgid+ep /usr/bin/alr
|
46
alr-git/alr.sh
Normal file
46
alr-git/alr.sh
Normal file
@ -0,0 +1,46 @@
|
||||
name='alr-git'
|
||||
version='195.c632ddb354'
|
||||
release='1'
|
||||
desc='Any Linux Repository'
|
||||
homepage='https://gitea.plemya-x.ru/Plemya-x/ALR'
|
||||
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
||||
license=('GPL-3.0-or-later')
|
||||
provides=('alr')
|
||||
conflicts=('alr' 'alr-bin' 'alr-git')
|
||||
|
||||
build_deps=('golang')
|
||||
build_deps_arch=('go')
|
||||
build_deps_alpine=('go')
|
||||
build_deps_opensuse=('go')
|
||||
|
||||
sources=("git+https://gitea.plemya-x.ru/Plemya-x/ALR.git")
|
||||
checksums=('SKIP')
|
||||
|
||||
scripts=(
|
||||
['postinstall']='postinstall.sh'
|
||||
)
|
||||
|
||||
version() {
|
||||
cd "${srcdir}/ALR"
|
||||
git-version
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/ALR"
|
||||
CGO_ENABLED=0 go build -ldflags="-X 'gitea.plemya-x.ru/Plemya-x/ALR/internal/config.Version=$(GIT_VERSION)'" -o alr
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/ALR"
|
||||
install-binary alr
|
||||
install-completion bash alr < scripts/completion/bash
|
||||
install-completion zsh alr < scripts/completion/zsh
|
||||
}
|
||||
|
||||
files() {
|
||||
echo ./usr/bin/alr
|
||||
echo ./usr/share/bash-completion/completions/alr
|
||||
echo ./usr/share/zsh/site-functions/_alr
|
||||
}
|
6
alr-git/postinstall.sh
Normal file
6
alr-git/postinstall.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
useradd -r -s /usr/sbin/nologin alr
|
||||
mkdir -p /var/cache/alr /etc/alr
|
||||
chown -R alr:alr /var/cache/alr
|
||||
setcap cap_setuid,cap_setgid+ep /usr/bin/alr
|
Reference in New Issue
Block a user