void-packages/srcpkgs/kubernetes-kind/template
2022-03-13 22:52:18 +01:00

28 lines
804 B
Bash

# Template file for 'kubernetes-kind'
pkgname=kubernetes-kind
version=0.12.0
revision=1
wrksrc="kind-${version}"
build_style=go
build_helper=qemu
go_import_path="sigs.k8s.io/kind"
short_desc="Kind is a tool for running local Kubernetes clusters using Docker"
maintainer="Andy Cobaugh <andrew.cobaugh@gmail.com>"
license="Apache-2.0"
homepage="https://kind.sigs.k8s.io/"
distfiles="https://github.com/kubernetes-sigs/kind/archive/v${version}.tar.gz"
checksum=cd1d09921b3c8a0f58c6423e5706be0c6e556f0c3d2b9e62f42be59263b209bb
_completions="bash zsh fish"
post_build() {
local cli=$(find $GOPATH/bin -name kind)
for shell in $_completions; do
vtargetrun $cli completion $shell > "kind.${shell}"
done
}
post_install() {
for shell in $_completions; do
vcompletion "kind.${shell}" $shell kind
done
}