mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 04:04:17 +02:00
36 lines
969 B
Text
36 lines
969 B
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=tanka
|
|
pkgver=0.32.0
|
|
pkgrel=0
|
|
pkgdesc="Flexible, reusable and concise configuration for Kubernetes"
|
|
url="https://tanka.dev"
|
|
# blocked by kubectl (kubernetes)
|
|
arch="all !armhf"
|
|
license="Apache-2.0"
|
|
depends="kubectl"
|
|
makedepends="go"
|
|
checkdepends="go-jsonnet helm"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/grafana/tanka/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v \
|
|
-ldflags "-X github.com/grafana/tanka/pkg/tanka.CurrentVersion=v$pkgver" \
|
|
./cmd/tk
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 tk -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
efda77f52218c18a5dcf34e8dfa86fa5c75cd41b09a256a0ba814bea7212e3e37c7989fe9952e488c5ce99fe424771d07664ed919b949adaefac2ecc60f103f6 tanka-0.32.0.tar.gz
|
|
"
|