mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 00:32:17 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Olliver Schinagl <oliver@schinagl.nl>
|
|
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
|
|
pkgname=gitlab-release-cli
|
|
pkgver=0.24.0
|
|
pkgrel=1
|
|
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="
|
|
5a0ed35187267898a17c31add823dbb84b57a4fac0dd060ff44d237b9c68dd85037404058244b8176d7a98ec1ad89a775d840e3571a76d7ee193ee44469781f9 release-cli-v0.24.0.tar.bz2
|
|
"
|