blob: 7ea68d11d139499428d820dc556481e8e6d1ff58 (
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
26
27
28
|
# Maintainer: Matt M <numbernine dot archlinux at complexnumber dot net>
pkgname=kops
pkgver=1.30.3
pkgrel=1
pkgdesc='Kubernetes Operations - Production Grade K8s Installation, Upgrades, and Management (build from src)'
arch=('x86_64')
url='https://github.com/kubernetes/kops'
license=('Apache-2.0')
source=("$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('35aed72e9c693d30ecc6a3d4dad054b5c1bbf616dafecb66f4cdb22db6d7b11e')
makedepends=('go')
build() {
cd $pkgname-$pkgver
export VERSION=$pkgver
make kops
}
package() {
install -Dm 755 "${srcdir}/$pkgname-$pkgver/.build/dist/linux/amd64/kops" "${pkgdir}/usr/bin/kops"
# Populate bash and zsh completions
install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
install -dm 755 "${pkgdir}/usr/share/zsh/site-functions"
"${pkgdir}/usr/bin/kops" completion bash > "${pkgdir}/usr/share/bash-completion/completions/kops"
"${pkgdir}/usr/bin/kops" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_kops"
}
|