# Maintainer: David Birks # Contributor: colemickens pkgname=kubectl-beta-bin pkgdesc="Command-line tool for deploying and managing applications on Kubernetes (beta)" pkgver=1.18.0_alpha.3 pkgrel=1 arch=('x86_64') url="https://github.com/kubernetes/kubernetes" license=('Apache') provides=('kubectl') 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=('9f47bd9be1adcd6537224ed4292a4b3e91dcf1f4bf47d338f37cd62b4c3f8a7485ab0cda70e17970ed89a8ede53d9ddae4868260e7eafa2193e01f6c63064077') 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" }