diff options
author | David Birks | 2019-03-04 21:54:47 -0500 |
---|---|---|
committer | David Birks | 2019-03-04 21:54:47 -0500 |
commit | 596a7a1ee45eb819bb6d7c0e5d89b11650298496 (patch) | |
tree | beed84e1619432a2582c5c5b6b86b5e67d8d7071 /PKGBUILD | |
parent | 39d21a454d764b8208d23dc49a870f39898d5881 (diff) | |
download | aur-596a7a1ee45eb819bb6d7c0e5d89b11650298496.tar.gz |
Add bash and zsh completion
Thanks to the kubectl PKGBUILD
Also updated description
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -2,17 +2,22 @@ # Contributor: colemickens <cole.mickens@gmail.com> pkgname=kubectl-beta-bin -pkgdesc="Kubernetes.io client binary (beta)" +pkgdesc="Command-line tool for deploying and managing applications on Kubernetes (beta)" pkgver=1.14.0_beta.1 pkgrel=1 arch=('x86_64') -url="http://kubernetes.io" +url="https://github.com/kubernetes/kubernetes" license=('apache') -provides=('kubectl-bin') +provides=('kubectl' 'kubectl-bin') conflicts=('kubectl' 'kubectl-bin' 'kubernetes>=1.4.6') source=("kubectl-${pkgver//_/-}::https://storage.googleapis.com/kubernetes-release/release/v${pkgver//_/-}/bin/linux/amd64/kubectl") sha256sums=('31a027f335bf6c5042eadaea9b4623b28e6255560ed502eeb697d3313124f5bd') package() { install -Dm 755 "$srcdir/kubectl-${pkgver//_/-}" "$pkgdir/usr/bin/kubectl" + # Populate bash and zsh completions + install -d 755 "$pkgdir/usr/share/bash-completion/completions" + install -d 755 "$pkgdir/usr/share/zsh/site-functions" + "$pkgdir/usr/bin/kubectl" completion bash > "$pkgdir/usr/share/bash-completion/completions/kubectl" + "$pkgdir/usr/bin/kubectl" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_kubectl" } |