diff --git a/alr-bin/alr.sh b/alr-bin/alr.sh index c816b37..80a3039 100644 --- a/alr-bin/alr.sh +++ b/alr-bin/alr.sh @@ -1,8 +1,8 @@ name='alr-bin' version='0.0.11' -release='1' +release='2' desc='Any Linux Repository' -homepage='https://gitverse.ru/sc/Xpamych/ALR' +homepage='https://gitea.plemya-x.ru/Plemya-x/ALR' maintainer_ru='Евгений Храмов ' architectures=('amd64' 'arm64' 'arm7' 'arm6' '386' 'riscv64') 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") checksums=('SKIP') +scripts=( + ['postinstall']='postinstall.sh' +) + prepare() { cd $srcdir } diff --git a/alr-bin/postinstall.sh b/alr-bin/postinstall.sh new file mode 100644 index 0000000..d2aedc3 --- /dev/null +++ b/alr-bin/postinstall.sh @@ -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 diff --git a/alr-git/alr.sh b/alr-git/alr.sh index 380b681..f152411 100644 --- a/alr-git/alr.sh +++ b/alr-git/alr.sh @@ -1,8 +1,8 @@ name='alr-git' -version='151.eb2cc3c' +version='2b7c2bbbb3' release='1' desc='Any Linux Repository' -homepage='https://gitverse.ru/sc/Xpamych/ALR' +homepage='https://gitea.plemya-x.ru/Plemya-x/ALR' maintainer='Evgeniy Khramov ' maintainer_ru='Евгений Храмов ' 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") checksums=('SKIP') +scripts=( + ['postinstall']='postinstall.sh' +) + version() { cd "${srcdir}/ALR" git-version @@ -33,4 +37,10 @@ package() { 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 } \ No newline at end of file diff --git a/alr-git/postinstall.sh b/alr-git/postinstall.sh new file mode 100644 index 0000000..d2aedc3 --- /dev/null +++ b/alr-git/postinstall.sh @@ -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