summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorlarte2016-07-17 14:30:17 +0300
committerlarte2016-07-17 14:30:17 +0300
commit21e31ab32c678598e539e202dd475c86c9215e11 (patch)
treef70d29d57ac16e1c7d801ec4b60700025cc740f9 /PKGBUILD
parent14c0f96abe7e742067a7829d3bb2ecfdf171965a (diff)
downloadaur-21e31ab32c678598e539e202dd475c86c9215e11.tar.gz
Download just kubectl binary instead of full distribution
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 7 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 945bba4d21a..d0d4524699a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,25 +2,17 @@
pkgname=kubectl-bin
pkgdesc="Kubernetes.io client binary"
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://kubernetes.io"
license=('apache')
-source=(https://github.com/kubernetes/kubernetes/releases/download/v$pkgver/kubernetes.tar.gz)
-md5sums=('9270f001aef8c03ff5db63456ca9eecc')
-package() {
- case $CARCH in
- i686)
- _kubectl_arch="386";
- ;;
- x86_64)
- _kubectl_arch="amd64";
- ;;
- *)
+source_i686=(http://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/386/kubectl)
+source_x86_64=(http://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/amd64/kubectl)
+md5sums_i686=('3ac0846e260b931f1e95fe203b4ce5b0')
+md5sums_x86_64=('09cdb4e370cb5bc77428550ee5a2cf71')
- ;;
- esac
+package() {
install -d "${pkgdir}"/usr/bin/
- install -D "${srcdir}"/kubernetes/platforms/linux/${_kubectl_arch}/kubectl "$pkgdir/usr/bin/"
+ install -D "${srcdir}"/kubectl "$pkgdir/usr/bin/"
}