summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22d01920a6a820eeb4f05b847877af8bc688894c (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.5.0
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=('f99c979e7fbe67b4c556c6682f11d5c1ad77f3803507b610f614e1643219cfd806d258b6b241ca4bbc3bb82a4c62b8aa913d01ad398274b2abb4e475056e6192')
sha512sums_x86_64=('00236f6bd5d51aac3d7e3c44c6841f1dc41939288b9bbc9e472500a0a69b0a9507e7154aed366b5584d6ccc492793ed4e96e2d9b6863be04a4f89f9f7cfd2d11')

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