1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/gitlab-release-cli/APKBUILD
2025-05-11 17:42:12 +02:00

41 lines
1.2 KiB
Text

# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=gitlab-release-cli
pkgver=0.19.0
pkgrel=5
pkgdesc="GitLab Release command-line tool"
url="https://gitlab.com/gitlab-org/release-cli"
license="MIT"
arch="all"
makedepends="go"
options="!check" # No selftest available
subpackages="$pkgname-doc"
source="https://gitlab.com/gitlab-org/release-cli/-/archive/v$pkgver/release-cli-v$pkgver.tar.bz2"
builddir="$srcdir/${pkgname##gitlab-}-v$pkgver"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
prepare() {
default_prepare
go get -u golang.org/x/sys@v0.6.0
go get -u golang.org/x/net@v0.6.0
go mod tidy
}
build() {
make CGO_ENABLED=1 build
}
package() {
install -D -m 0755 "$builddir/bin/release-cli" \
"$pkgdir/usr/bin/release-cli"
install -D -d "$pkgdir/usr/share/doc/$pkgname"
cp -T -a "$builddir/docs/" "$pkgdir/usr/share/doc/$pkgname"
}
sha512sums="
b1e0947366fb20d15b1b0bb685764e5bec1bd5a09fe7db43fd139bb694a45b28c76528c6af7325ff9a58a33d5069aa844527331764b14f1c6873413ce36c4440 release-cli-v0.19.0.tar.bz2
"