aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kops/APKBUILD
blob: 234889fbd4b8f800261e0b92038cdb92870b4ad4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=kops
pkgver=1.18.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::https://github.com/kubernetes/kops/archive/v$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="3c88faa823b1ecad7a3b13a1f4edfafcb311b0ca77561f57588716dc2bd7619c6907ad4af1484c6f419c8588a44cea77f317c16f408b3a1a83a7b9fdebd332e7  kops-1.18.0.tar.gz"