summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e7edb8b9a91a8181e846494da045e74514d017f (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.7.2
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=('17d4bdb8631add066a6f178c672bc0509c87542804ac752cd79e3d6304f19b13240011cb9aba6489bc6d194a801f69d23c89e17d64f6970818df34610e6e3ba1')
sha512sums_x86_64=('92e35ebe032157085f6dfa7697dd220bb64bc86acaeb17bb5210b8d9ce68209f33b261559840a2bb0273a4527905dc3a74b9a8690e7b245c99f2cc457ec63116')

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"
}