New package: k3d-5.4.1

This commit is contained in:
Daniel Lewan 2021-12-17 09:59:26 +01:00 committed by Piraty
parent cbfaa88c2d
commit 0214763fad

31
srcpkgs/k3d/template Normal file
View file

@ -0,0 +1,31 @@
# Template file for 'k3d'
pkgname=k3d
version=5.4.1
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/k3d-io/k3d/v5"
depends="docker"
short_desc="Creates containerized k3s clusters"
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
license="MIT"
homepage="https://k3d.io/"
distfiles="https://github.com/k3d-io/k3d/archive/v${version}.tar.gz"
checksum=606cf8fc8d2732e87e92cc9e67d73e64eb73c5e093193cc03172cbba685e0ee0
_completions="bash zsh fish"
post_build() {
local cli=$(find $GOPATH/bin -name k3d)
for shell in $_completions
do
vtargetrun "$cli" completion "$shell" >"completion.$shell"
done
}
post_install() {
for shell in $_completions
do
vcompletion "completion.$shell" "$shell"
done
vlicense LICENSE
}