blob: d8eafd5875094706031c9aea032c06cd9715741f (
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
29
30
31
|
# Maintainer: Jenn Wheeler <jwheelerac@gmail.com>
pkgname=kind-git
_pkgname=kind
pkgver=0.11.1.r244.g92e01d72
pkgrel=1
pkgdesc="Kubernetes IN Docker - local clusters for testing Kubernetes"
url="https://github.com/kubernetes-sigs/kind"
source=("git+https://github.com/kubernetes-sigs/kind")
arch=('x86_64')
license=('Apache')
makedepends=('git' 'go')
conflicts=('kind-bin')
provides=('kind')
sha256sums=(SKIP)
build () {
cd "$srcdir/$_pkgname"
go build
}
package() {
install -Dm 755 "$srcdir/$_pkgname/kind" "$pkgdir/usr/bin/kind"
"$pkgdir/usr/bin/kind" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/kind"
"$pkgdir/usr/bin/kind" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_kind"
}
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
|