forked from larte/kubectl-bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
22 lines (20 loc) · 915 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: larte <[email protected]>
# Contributor: Maxwell Pray a.k.a. Synthead <[email protected]>
pkgname=kubectl-bin
pkgdesc="Kubernetes.io client binary"
pkgver=1.9.3
pkgrel=1
arch=('i686' 'x86_64')
url="http://kubernetes.io"
license=('apache')
conflicts=('kubernetes>=1.4.6')
_kubectl_file=kubectl-$pkgver
source_i686=($_kubectl_file::https://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/386/kubectl)
source_x86_64=($_kubectl_file::https://storage.googleapis.com/kubernetes-release/release/v$pkgver/bin/linux/amd64/kubectl)
md5sums_i686=('43e583ad6686937a27fee9846b0f78d8')
md5sums_x86_64=('471a8398e3083b8fc971e3c1e0df2ba5')
package() {
install -Dm 755 "$srcdir/$_kubectl_file" "$pkgdir/usr/bin/kubectl"
install -d 755 "$pkgdir/usr/share/bash-completion/completions"
"$pkgdir/usr/bin/kubectl" completion bash > "$pkgdir/usr/share/bash-completion/completions/kubectl"
}