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