aboutsummaryrefslogtreecommitdiffstats
path: root/testing/minikube/APKBUILD
blob: e289db66c0dacbbb0ea490e3c30278dbf2211a42 (plain)
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
# Contributor:
# Maintainer: Magicloud <magiclouds@gmail.com>
pkgname=minikube
pkgver=0.35.0
pkgrel=1
pkgdesc="Minikube is a tool that makes it easy to run Kubernetes locally"
url="https://github.com/kubernetes/minikube"
arch="all"
license="Apache"
makedepends="make go git bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/minikube/archive/v$pkgver.tar.gz"

prepare () {
	rm -rf "$srcdir/src"
	mkdir -p "$srcdir/src/k8s.io"
	mv "$srcdir/minikube-$pkgver" "$srcdir/src/k8s.io/minikube"
}

build () {
	export GOPATH="$srcdir"
	cd "$GOPATH/src/k8s.io/minikube"
	make
}

package () {
	install -Dm755 "$srcdir/src/k8s.io/minikube/out/minikube" -t "$pkgdir/usr/bin"
}

check () {
	export GOPATH="$srcdir"
        cd "$GOPATH/src/k8s.io/minikube"
        make test
}

sha512sums="ef5158ebf42090570e5bef3ff7cfe3536c091356119925029510a0cec93fa0deba780964fc576e54ccb50336d05d95782a405b3161e0ff2fa0544d82ae0d7682  minikube-0.35.0.tar.gz"