43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
name='alr-git'
|
|
version='300.86a982478e'
|
|
release='2'
|
|
desc="A Linux distribution-independent package building system - binary release"
|
|
desc_ru="Независимая от дистрибутива Linux система сборки пакетов - двоичные файлы"
|
|
homepage="https://alr.plemya-x.ru"
|
|
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')
|
|
|
|
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
|
|
} |