void-packages/srcpkgs/k3d/template

32 lines
748 B
Bash

# 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
}