blob: 10f9a374b93953c366297b2a6904f536812c544c (
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
|
# Maintainer: Peter Trotman <petertrotman+aur@gmail.com>
# URL: https://github.com/kubernetes/minikube
# Upstream: https://github.com/kubernetes/minikube
pkgname=('minikube-git')
pkgver=0.28.2.r55.gbed9aabaf
pkgrel=1
pkgdesc='Minikube is a tool that makes it easy to run Kubernetes locally.'
arch=('x86_64')
url='https://github.com/kubernetes/minikube'
license=('apache')
depends=()
optdepends=(
'kubectl: to manage the cluster'
'virtualbox'
'docker-machine-driver-kvm2'
)
makedepends=('git' 'go')
provides=('minikube')
conflicts=('minikube')
source=("$pkgname::git+https://github.com/kubernetes/minikube.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
rm -rf "$srcdir/src"
mkdir -p "$srcdir/src/k8s.io"
cp -r "$srcdir/$pkgname" "$srcdir/src/k8s.io"
mv "$srcdir/src/k8s.io/$pkgname" "$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" "$pkgdir/usr/bin/minikube"
install -Dm644 "$srcdir/src/k8s.io/minikube/LICENSE" "$pkgdir/usr/share/licenses/minikube/LICENSE"
}
|