summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16b44467dc721318c6de6cb2116d68be7834e52e (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
25
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>

pkgname=kubecfg
pkgver=0.16.0
pkgrel=1
pkgdesc="A tool for managing complex enterprise Kubernetes environments as code"
url="https://github.com/bitnami/kubecfg"
license=('Apache')
arch=('x86_64')
makedepends=('git' 'go')
source=("git+https://github.com/bitnami/kubecfg.git#tag=v${pkgver}")
md5sums=('SKIP')

build() {
	cd kubecfg
	make kubecfg
}

package() {
	cd kubecfg
	install -Dm755 kubecfg -t "$pkgdir/usr/bin"

	"$pkgdir/usr/bin/kubecfg" completion --shell bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/kubecfg"
	"$pkgdir/usr/bin/kubecfg" completion --shell zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_kubecfg"
}