summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorlarte2016-11-30 09:40:51 +0200
committerlarte2016-11-30 09:40:51 +0200
commit9dad818913736679fdb476cad8702c8a8583e293 (patch)
tree78fad996417943b42f009c07a98222787b0d20a9 /PKGBUILD
parent111320d9c4fd308240f0aca92f9f622fad512f83 (diff)
downloadaur-9dad818913736679fdb476cad8702c8a8583e293.tar.gz
Merged fix for validity check from Synthead
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a0333fd2515..45567bb350a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,20 @@
# Maintainer: larte <lauri.arte@gmail.com>
+# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
+
pkgname=kubectl-bin
pkgdesc="Kubernetes.io client binary"
pkgver=1.4.6
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://kubernetes.io"
license=('apache')
-conflicts=('kubernetes=1.3.2-1')
-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)
+conflicts=('kubernetes=1.4.6-1')
+_kubectl_file=kubectl-$pkgver
+source_i686=($_kubectl_file::http://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/386/kubectl)
+source_x86_64=($_kubectl_file::http://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/amd64/kubectl)
md5sums_i686=('6680d5e2896fc59d203a40a6cfdd6d2b')
md5sums_x86_64=('400fe0fe30df83dee4b2bec10a85fe54')
package() {
- install -d "${pkgdir}"/usr/bin/
- install -D "${srcdir}"/kubectl "$pkgdir/usr/bin/"
-
+ install -Dm 755 "$srcdir/$_kubectl_file" "$pkgdir/usr/bin/kubectl"
}