alr-bin 0.0.11-2 & alr-git
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
name='alr-bin'
|
name='alr-bin'
|
||||||
version='0.0.11'
|
version='0.0.11'
|
||||||
release='1'
|
release='2'
|
||||||
desc='Any Linux Repository'
|
desc='Any Linux Repository'
|
||||||
homepage='https://gitverse.ru/sc/Xpamych/ALR'
|
homepage='https://gitea.plemya-x.ru/Plemya-x/ALR'
|
||||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
||||||
license=('GPL-3.0-or-later')
|
license=('GPL-3.0-or-later')
|
||||||
@ -12,6 +12,10 @@ 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")
|
sources=("https://gitea.plemya-x.ru/Plemya-x/ALR/releases/download/v${version}/alr-${version}-linux-x86_64.tar.gz")
|
||||||
checksums=('SKIP')
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
scripts=(
|
||||||
|
['postinstall']='postinstall.sh'
|
||||||
|
)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $srcdir
|
cd $srcdir
|
||||||
}
|
}
|
||||||
|
6
alr-bin/postinstall.sh
Normal file
6
alr-bin/postinstall.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
useradd -m -s /bin/bash alr
|
||||||
|
mkdir -p /var/cache/alr /etc/alr
|
||||||
|
chown alr:alr /var/cache/alr
|
||||||
|
setcap cap_setuid,cap_setgid+ep /usr/bin/alr
|
@ -1,8 +1,8 @@
|
|||||||
name='alr-git'
|
name='alr-git'
|
||||||
version='151.eb2cc3c'
|
version='2b7c2bbbb3'
|
||||||
release='1'
|
release='1'
|
||||||
desc='Any Linux Repository'
|
desc='Any Linux Repository'
|
||||||
homepage='https://gitverse.ru/sc/Xpamych/ALR'
|
homepage='https://gitea.plemya-x.ru/Plemya-x/ALR'
|
||||||
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
||||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64')
|
||||||
@ -18,6 +18,10 @@ build_deps_opensuse=('go')
|
|||||||
sources=("git+https://gitea.plemya-x.ru/Plemya-x/ALR.git")
|
sources=("git+https://gitea.plemya-x.ru/Plemya-x/ALR.git")
|
||||||
checksums=('SKIP')
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
scripts=(
|
||||||
|
['postinstall']='postinstall.sh'
|
||||||
|
)
|
||||||
|
|
||||||
version() {
|
version() {
|
||||||
cd "${srcdir}/ALR"
|
cd "${srcdir}/ALR"
|
||||||
git-version
|
git-version
|
||||||
@ -34,3 +38,9 @@ package() {
|
|||||||
install-completion bash alr < scripts/completion/bash
|
install-completion bash alr < scripts/completion/bash
|
||||||
install-completion zsh alr < scripts/completion/zsh
|
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 -m -s /bin/bash alr
|
||||||
|
mkdir -p /var/cache/alr /etc/alr
|
||||||
|
chown alr:alr /var/cache/alr
|
||||||
|
setcap cap_setuid,cap_setgid+ep /usr/bin/alr
|
Reference in New Issue
Block a user