aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/APKBUILD
blob: 72a6a2d5be557fab0d839c6008a35307caff5fa3 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=kubernetes
pkgver=1.3.10
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=""
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
	install -d $pkgdir/var/lib/kubelet
}

md5sums="2dc09b21aaccc73eacbb60132466ea85  kubernetes-1.3.10.tar.gz"
sha256sums="7167e8c8e68d34596018103b55724f01d9b5e1f715c816c347a967cb438d6d18  kubernetes-1.3.10.tar.gz"
sha512sums="770703fd0747ef75847507f807810eb4206ff644ce71c9f64cf3914242230eb80c84f0ee9225619733a0d30e079aa9508628ce47096e31efb03f9eb7ec6fb942  kubernetes-1.3.10.tar.gz"