# Contributor: Kaarle Ritvanen # Maintainer: Kevin Daudt pkgname=kops pkgver=1.16.0 pkgrel=0 pkgdesc="Kubernetes Operations" url="https://github.com/kubernetes/kops" arch="x86_64" license="Apache-2.0" depends="kubernetes" makedepends="go" options="chmod-clean" source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz" export GOPATH=$srcdir/go prepare() { default_prepare local dir=$GOPATH/src/k8s.io mkdir -p "$dir" ln -s "$builddir" "$dir/$pkgname" } build() { make } check() { make test } package() { install -D "$GOPATH"/bin/kops "$pkgdir"/usr/bin/kops } sha512sums="655a97d4fc0d2291a9b9ff4dfb737597464df267e4a232d9f0828f92627e9e2d2493f635718e5d42db8d5edda96c7e231704a57cf6b9d602add9ab2cf25eac82 kops-1.16.0.tar.gz"