summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4febf395abc4b46d16bd3ec6cf439933d78bdca1 (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: Marat Bakeev <hawara@gmail.com>

pkgname=kops21-bin
pkgver=v1.21.4
_build=${pkgver}
pkgrel=1
pkgdesc='Kubernetes Operations 1.21 version (kOps) - Production Grade K8s Installation, Upgrades, and Management'
url='https://github.com/kubernetes/kops'
arch=('x86_64')
license=('apache')
conflicts=()

source_x86_64=("$pkgname-$pkgver::https://github.com/kubernetes/kops/releases/download/${_build}/kops-linux-amd64")
sha256sums_x86_64=('fbd4c1120da45304cf872449d6a39327186a60697c3ca4037172c7d5d28821d1')

package() {
    install -d ${pkgdir}/usr/bin
    install -Dm755 ${srcdir}/$pkgname-$pkgver ${pkgdir}/usr/bin/kops

    install -d 755 "$pkgdir/usr/share/bash-completion/completions"
    install -d 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"
}