summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a20b3a258245360441a68a9a74198da028cd95a (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.4.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=('ceaa0314f0ebf67dcfc7531513605cebc1b8c8c6e0cd6307d82123bb44d7230bf4576cf0a23c741029ad446364f6edc24fedcb47c4c645476f770750abbaa8a8')
sha512sums_x86_64=('5eaf9fae902907e6bb24efbcd61b9e5ce8022b5ecf9d03faa7dbb6c78e796d22e80559406b76aa244c058d42554065b85279f2392afe3d9e99777cdf97d2b66d')

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