Skip to content

Instantly share code, notes, and snippets.

@mtb-xt
Created September 27, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtb-xt/b468079e84f6bf10dfeb9f4348d4d02d to your computer and use it in GitHub Desktop.
Save mtb-xt/b468079e84f6bf10dfeb9f4348d4d02d to your computer and use it in GitHub Desktop.
kops-bin 1.18.1 aur
# Maintainer: Dennis Oehme <oehme@gardenofconcepts.com>
pkgname=kops-bin
pkgver=v1.18.1
_build=${pkgver}
pkgrel=1
pkgdesc='Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management'
url='https://github.com/kubernetes/kops'
arch=('x86_64')
license=('apache')
conflicts=()
source_x86_64=("$pkgname-$pkgver::https://github.com/kubernetes/kops/releases/download/${_build}/kops-linux-amd64")
sha1sums_x86_64=('4ebf1613ef197697875fda86bc12ece00a01770b')
package() {
install -d ${pkgdir}/usr/bin
install -Dm755 ${srcdir}/$pkgname-$pkgver ${pkgdir}/usr/bin/kops
install -d 755 "$pkgdir/usr/share/bash-completion/completions"
install -d 755 "$pkgdir/usr/share/zsh/site-functions"
"$pkgdir/usr/bin/kops" completion bash > "$pkgdir/usr/share/bash-completion/completions/kops"
"$pkgdir/usr/bin/kops" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_kops"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment