summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f66d7eb7bd75e918a9061bb39b4911e5b1019ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Lukas Grossar <lukas.grossar@gmail.com>

pkgname=kubernetes-helm
pkgver=2.8.1
pkgrel=1
pkgdesc="A tool to manage Kubernetes charts"
arch=('i686' 'x86_64')
url="https://github.com/kubernetes/helm"
depends=('socat')
optdepends=('kubectl-bin: Check Kubernetes status')
license=('Apache')
source_i686=("https://kubernetes-helm.storage.googleapis.com/helm-v$pkgver-linux-386.tar.gz")
source_x86_64=("https://kubernetes-helm.storage.googleapis.com/helm-v$pkgver-linux-amd64.tar.gz")
sha512sums_i686=('dec4bde46324dcad359647b47b3bd5c5db799ff087debccaabbac1293e354d46c644879fbebdaec5e8a517669448962e0726edf945f3ac81f7be5443c59a07d9')
sha512sums_x86_64=('95f3e1f00263c5f1518ea153ce5522ce7fd52c4bcf9d3f302208ccd84c56fc62568c6494bba9a78c348fc567777c44ceaaeff636e323d0524cfc1b9fb809a66e')

package() {
  cd "$srcdir"
  install -Dm 755 linux-*/helm "$pkgdir/usr/bin/helm"
  install -d 755 "$pkgdir/usr/share/bash-completion/completions"
  "$pkgdir/usr/bin/helm" completion bash > "$pkgdir/usr/share/bash-completion/completions/helm"
  install -d 755 "$pkgdir/usr/share/zsh/site-functions"
  "$pkgdir/usr/bin/helm" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_helm"
}