ALR git версия

This commit is contained in:
Евгений Храмов 2024-06-16 19:12:02 +03:00
parent 14b599a4a3
commit 1eae5de542

@ -2,7 +2,7 @@ name='alr-git'
version='latest' version='latest'
release=1 release=1
desc='Any Linux Repository' desc='Any Linux Repository'
homepage='https://gitflic.ru/project/xpamych/alr' homepage='https://gitverse.ru/sc/Xpamych/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')
@ -15,21 +15,21 @@ build_deps_arch=('go')
build_deps_alpine=('go') build_deps_alpine=('go')
build_deps_opensuse=('go') build_deps_opensuse=('go')
sources=("https://gitflic.ru/project/xpamych/alr.git") sources=("git+https://gitverse.ru/sc/Xpamych/ALR.git")
checksums=('SKIP') checksums=('SKIP')
version() { version() {
cd "${srcdir}/alr" cd "${srcdir}/ALR"
git-version git-version
} }
build() { build() {
cd "${srcdir}/alr" cd "${srcdir}/ALR"
CGO_ENABLED=0 go build -ldflags="-X 'plemya-x.ru/alr/internal/config.Version=$version'" CGO_ENABLED=0 go build -ldflags="-X 'plemya-x.ru/alr/internal/config.Version=$version'"
} }
package() { package() {
cd "$srcdir/alr" cd "$srcdir/ALR"
install-binary alr install-binary alr
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