aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/APKBUILD
blob: 552ad0006d973e1efa62c40cdae8aa39e4873ef2 (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.7
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="84e6c18c856697ec12ecf34e1341ff7c  kubernetes-1.3.7.tar.gz"
sha256sums="40a655b5ae1734acfda157088a20853aaf87945508edf73497bec5fa26352a9b  kubernetes-1.3.7.tar.gz"
sha512sums="763d45854314d57d001c4e68a25d86fa0c679590c5bbefc9d3490dc65f89205d89e933c3cdcccfef548ca7ac400cc26404a197ac49448588f73d16a8912c1205  kubernetes-1.3.7.tar.gz"