Commit 7ee41d73 authored by Francesco Colista's avatar Francesco Colista

testing/kubernetes: new aport

parent ffebc4c4
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment