# Contributor: Galen Abell # Maintainer: Galen Abell pkgname=k9s _pkgname=github.com/derailed/k9s pkgver=0.24.10 pkgrel=0 _commit=6426ea11 # git rev-parse --short HEAD _date=2021-05-26T21:44:34UTC # date -u -d @$(date +%s) +%FT%T%Z pkgdesc="Kubernetes TUI" url="https://k9scli.io" arch="all !x86 !armhf !mips64" # tests fail license="Apache-2.0" makedepends="go" options="net chmod-clean" source="$pkgname-$pkgver.tar.gz::https://github.com/derailed/k9s/archive/v$pkgver.tar.gz" export GOPATH="$srcdir/go" export GOCACHE="$srcdir/go-build" export GOTMPDIR="$srcdir" build() { local ldflags="-w -s -X $_pkgname/cmd.version=$pkgver -X $_pkgname/cmd.commit=$_commit -X $_pkgname/cmd.date=$_date" go build -ldflags "$ldflags" -a -tags netgo -o execs/$pkgname main.go } check() { go test ./... } package() { install -Dm755 execs/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums=" a6bfe9d553812f3879fdc07d4e20097430ed4f2a51cefdf23c2fb21a33fd7c66fac4453fc32322fbd09a65532c37a3a77a772f3a0ec72eb6874cff599f0965df k9s-0.24.10.tar.gz "