blob: 0cb5b87f57e980917bb738a8c5a5f1072823f9bc (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Magicloud <magiclouds@gmail.com>
pkgname=minikube
pkgver=1.27.1
pkgrel=1
pkgdesc="Tool that makes it easy to run Kubernetes locally"
url="https://github.com/kubernetes/minikube"
license="Apache-2.0"
arch="all !s390x !riscv64" # blocked by libvirt
arch="$arch !x86 !armhf !armv7 !ppc64le !aarch64" # FTBFS (kvm2 driver)
options="chmod-clean"
makedepends="go go-bindata bash libvirt-dev"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
docker-machine-driver-kvm2:_kvm2_driver
"
source="https://github.com/kubernetes/minikube/archive/v$pkgver/minikube-$pkgver.tar.gz
skip-amd64-only-test.patch
"
options="net"
export GOPATH="$srcdir"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
prepare() {
default_prepare
mkdir -p "$srcdir"/src/k8s.io
mv "$srcdir"/minikube-$pkgver "$srcdir"/src/k8s.io/minikube
ln -s "$srcdir"/src/k8s.io/minikube/out "$srcdir"/minikube-$pkgver
}
build() {
cd "$GOPATH"/src/k8s.io/minikube
make out/minikube out/docker-machine-driver-kvm2
cd "$builddir"
./minikube completion bash > $pkgname.bash
./minikube completion fish > $pkgname.fish
./minikube completion zsh > $pkgname.zsh
}
check() {
cd "$GOPATH"/src/k8s.io/minikube
TESTSUITE=unittest make test
}
package() {
install -Dm755 minikube "$pkgdir"/usr/bin/minikube
install -Dm755 docker-machine-driver-kvm2 "$pkgdir"/usr/bin/docker-machine-driver-kvm2
install -Dm644 $pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -Dm644 $pkgname.fish "$pkgdir"/usr/share/fish/completions/$pkgname.fish
install -Dm644 $pkgname.zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
_kvm2_driver() {
pkgdesc="minikube-maintained KVM driver for docker-machine"
amove usr/bin/docker-machine-driver-kvm2
}
sha512sums="
4b9f79aa0e801a894f0b370ecd79bd8996ccb4ac1ed6a7d5543feb0e1a3a1c0f77830739e5c8e2ca19cf4ca197f09b5d0527afed9e12aadf5f990411089f4a8a minikube-1.27.1.tar.gz
2eccb63b0905791968dec95f8f758da12632a8530c6db600648f2a190b23dd363d1a3c717488fc4e36f9082346c053eb9cf2ed00f65d14744e3fe9606dc32ddd skip-amd64-only-test.patch
"
|