summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD22
2 files changed, 13 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f68e90c1741..6c170299cea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,15 @@
pkgbase = kubectl-bin
pkgdesc = Kubernetes.io client binary
pkgver = 1.3.0
- pkgrel = 1
+ pkgrel = 2
url = http://kubernetes.io
arch = i686
arch = x86_64
license = apache
- source = https://github.com/kubernetes/kubernetes/releases/download/v1.3.0/kubernetes.tar.gz
- md5sums = 9270f001aef8c03ff5db63456ca9eecc
+ source_i686 = http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/linux/386/kubectl
+ md5sums_i686 = 3ac0846e260b931f1e95fe203b4ce5b0
+ source_x86_64 = http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/linux/amd64/kubectl
+ md5sums_x86_64 = 09cdb4e370cb5bc77428550ee5a2cf71
pkgname = kubectl-bin
+
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/"
}