mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 17:22:07 +01:00
36 lines
897 B
Plaintext
36 lines
897 B
Plaintext
# Maintainer: Hristiyan Ivanov <hristiyan.d.ivanov@gmail.com>
|
|
pkgname=spacectl
|
|
pkgver=0.27.0
|
|
pkgrel=1
|
|
pkgdesc="A Utility wrapping Spacelift's GraphQL API for easy programmatic access in command-line contexts."
|
|
url="https://github.com/spacelift-io/spacectl"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/spacelift-io/spacectl/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
go mod download
|
|
}
|
|
|
|
build() {
|
|
go build .
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 "$builddir/$pkgname" "$pkgdir"/usr/bin/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
4503a59201fd4781eacfcad79364a84e59b0266980722d0b876d35592f83fef385a491ffb041c4b6b3ce5b7d35abee84c28eb5878b09809d97c0272faa19b8af spacectl-0.27.0.tar.gz
|
|
"
|