void-packages/srcpkgs/k3d/template

32 lines
748 B
Bash

# Template file for 'k3d'
pkgname=k3d
version=5.4.4
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=f970b63ca9d1b02f6fe11b9894267c2a99138021e9cdc1dda0d1796b682bd134
_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
}