aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/APKBUILD
blob: bb02ec0624039b61e102943e436ddd24a09728ef (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=kubernetes
pkgver=1.2.3
pkgrel=0
pkgdesc="Container Cluster Manager for Docker"
url="http://kubernetes.io/"
arch="x86_64"
license="APACHE"
depends="bash"
depends_dev=""
makedepends="$depends_dev go rsync bash linux-headers"
install=""
subpackages="$pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	export GOPATH="$srcdir"
	bash ./hack/build-go.sh
}

package() {
	cd "$builddir"
	binaries="kube-apiserver kube-controller-manager kube-scheduler kube-proxy kubelet kubectl kubemark hyperkube"
	for bin in $binaries ; do
    	install -Dm755 _output/local/bin/linux/amd64/$bin $pkgdir/usr/bin/$bin
    done
}

bashcomp() {
    depends="bash"
    pkgdesc="Bash completions for $pkgname"
    arch="noarch"
    cd "$builddir"
    mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
	mv "$builddir"/contrib/completions/bash/kubectl "$subpkgdir"/usr/share/bash-completion/completions/kubectl
}



md5sums="1726b0eb541552fafb266cc4d8e487eb  kubernetes-1.2.3.tar.gz"
sha256sums="542db5eb9f635aae53dc4055c778101e1192f34d04549505bd2ada8dec0d837c  kubernetes-1.2.3.tar.gz"
sha512sums="4f5f2e5f2b0e74546ce640a2e5753f2aebb35fcff2685a42f4b67f75088c8d0afdbb88d69417071a6caa8d5d74022f1a7af4f10b2f8b4da3792d864c97264584  kubernetes-1.2.3.tar.gz"