mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
pkgname=lab
|
|
pkgver=0.22.0
|
|
pkgrel=0
|
|
pkgdesc="Git Wrapper for GitLab"
|
|
url="https://zaquestion.github.io/lab/"
|
|
arch="all"
|
|
license="CC0-1.0"
|
|
depends="git"
|
|
makedepends="go"
|
|
checkdepends="bash"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
source="lab-$pkgver.tar.gz::https://github.com/zaquestion/lab/archive/v$pkgver.tar.gz"
|
|
options="net !check chmod-clean" # Tests require configured GitLab account with SSH keys
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
build() {
|
|
go build -ldflags "-X main.version=$pkgver" -o bin/$pkgname
|
|
./bin/lab completion bash > lab.bash
|
|
./bin/lab completion zsh > _lab.zsh
|
|
./bin/lab completion fish > lab.fish
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "$builddir"/bin/$pkgname \
|
|
"$pkgdir"/usr/bin/$pkgname
|
|
install -Dm644 "$builddir"/lab.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
|
|
install -Dm644 "$builddir"/_lab.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
install -Dm644 "$builddir"/lab.fish \
|
|
"$pkgdir"/usr/share/fish/completions/$pkgname.fish
|
|
}
|
|
|
|
sha512sums="
|
|
a43b20cbf1bba63e8d80f46b02421be9eb06fa5572a4bed0c12fd39df1e15aa45272960c4136c4165938a53e7dec9e4670a44ffedf92334741c38c613179457e lab-0.22.0.tar.gz
|
|
"
|