# Contributor: Hoang Nguyen # Maintainer: Hoang Nguyen pkgname=popeye pkgver=0.11.1 pkgrel=3 pkgdesc="Kubernetes cluster resource sanitizer" url="https://popeyecli.io/" arch="all" license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/derailed/popeye/archive/refs/tags/v$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { GOLDFLAGS=" -X github.com/derailed/popeye/cmd.version=v$pkgver -X github.com/derailed/popeye/cmd.commit=AlpineLinux -X github.com/derailed/popeye/cmd.date=$(date +%FT%T%Z) " go build -v -tags netgo -o bin/$pkgname -ldflags "$GOLDFLAGS" } check() { go test ./... } package() { install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums=" 575546e59d333f4b44b18b8baba203de15a2100eb031d828c8a9164f2ab6cb5ebc297050d7642cf28db8973974fe7c36f96d5ee55217c504b2f11f63b6884921 popeye-0.11.1.tar.gz "