alr-bin 0.0.17-2
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
name="alr-bin"
|
||||
version="0.0.17"
|
||||
release="1"
|
||||
desc="ALT Linux Repository tool - binary release"
|
||||
homepage="https://gitea.plemya-x.ru/Plemya-x/alr"
|
||||
maintainer="ALR Updater Bot"
|
||||
architectures=('x86_64')
|
||||
release="2"
|
||||
desc="ALT Linux Repository - binary release"
|
||||
homepage="https://gitea.plemya-x.ru/Plemya-x/ALR"
|
||||
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
|
||||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||
architectures=('all')
|
||||
license=('GPL-3.0-or-later')
|
||||
provides=('alr')
|
||||
conflicts=('alr' 'alr-git')
|
||||
@@ -12,27 +13,14 @@ conflicts=('alr' 'alr-git')
|
||||
sources=("https://gitea.plemya-x.ru/Plemya-x/ALR/releases/download/v0.0.17/alr-0.0.17-linux-x86_64.tar.gz")
|
||||
checksums=("1af629d138e4b09e16e9b44c5497dd102bde2fcded54bf5c4efafdc3fde0eada")
|
||||
|
||||
backup=()
|
||||
|
||||
package() {
|
||||
# Распаковываем архив
|
||||
cd "${srcdir}"
|
||||
|
||||
# Устанавливаем бинарный файл
|
||||
install -Dm755 alr "${pkgdir}/usr/bin/alr"
|
||||
|
||||
# Устанавливаем bash completion если есть
|
||||
if [ -f "completions/alr.bash" ]; then
|
||||
install -Dm644 "completions/alr.bash" "${pkgdir}/usr/share/bash-completion/completions/alr"
|
||||
fi
|
||||
|
||||
# Устанавливаем zsh completion если есть
|
||||
if [ -f "completions/_alr" ]; then
|
||||
install -Dm644 "completions/_alr" "${pkgdir}/usr/share/zsh/site-functions/_alr"
|
||||
fi
|
||||
|
||||
# Устанавливаем fish completion если есть
|
||||
if [ -f "completions/alr.fish" ]; then
|
||||
install -Dm644 "completions/alr.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/alr.fish"
|
||||
fi
|
||||
install-binary alr
|
||||
install-completion bash alr < ./completion/alr
|
||||
install-completion zsh alr < ./completion/_alr
|
||||
}
|
||||
|
||||
files() {
|
||||
echo ./usr/bin/alr
|
||||
echo ./usr/share/bash-completion/completions/alr
|
||||
echo ./usr/share/zsh/site-functions/_alr
|
||||
}
|
Reference in New Issue
Block a user