aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kops
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2018-01-25 13:17:23 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2018-01-25 13:17:23 +0200
commit3946ebd9552031cbf702f41b55e9ca9d3b3c5c18 (patch)
treea3e178b16e09dca9e6cd3f794269d05cd039ea55 /testing/kops
parent142c02cde3f3933cabf6be9b1553cbaff694fd9c (diff)
downloadaports-3946ebd9552031cbf702f41b55e9ca9d3b3c5c18.tar.bz2
aports-3946ebd9552031cbf702f41b55e9ca9d3b3c5c18.tar.xz
testing/kops: new package
Diffstat (limited to 'testing/kops')
-rw-r--r--testing/kops/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/kops/APKBUILD b/testing/kops/APKBUILD
new file mode 100644
index 0000000000..8815e45b3f
--- /dev/null
+++ b/testing/kops/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+pkgname=kops
+pkgver=1.8.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="be1e8aac5d5704b80aea7f10a27287c5951660ff2644692d634d22fce917b145390d173b320ffed96b3a6bd5d363cef2b33703db5e175a81be419cf6d11e86da kops-1.8.0.tar.gz"