# Maintainer: David Birks # Contributor: colemickens pkgname=kubectl-beta-bin pkgdesc="Command-line tool for deploying and managing applications on Kubernetes (beta)" pkgver=1.15.1_beta.0 pkgrel=1 arch=('x86_64') url="https://github.com/kubernetes/kubernetes" license=('Apache') 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") sha512sums=('fe0cb2ca88b4e20d59a7904069e03e647851a67c6a9eb76d10e0369a911160f9ae4d82142df28611cc41610c1bfdf46720695721d0686fa10a1c86ed31c11a66') package() { install -Dm 755 "$srcdir/kubectl-${pkgver/_/-}" "$pkgdir/usr/bin/kubectl" # Populate bash and zsh completions install -dm 755 "$pkgdir/usr/share/bash-completion/completions" install -dm 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" }