34 lines
843 B
Bash
34 lines
843 B
Bash
# Template file for 'k3d'
|
|
pkgname=k3d
|
|
version=5.4.7
|
|
revision=1
|
|
build_style=go
|
|
build_helper=qemu
|
|
go_import_path="github.com/k3d-io/k3d/v5"
|
|
go_mod_mode=default
|
|
depends="docker"
|
|
short_desc="Creates containerized k3s clusters"
|
|
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://k3d.io/"
|
|
changelog="https://raw.githubusercontent.com/k3d-io/k3d/main/CHANGELOG.md"
|
|
distfiles="https://github.com/k3d-io/k3d/archive/v${version}.tar.gz"
|
|
checksum=be5573bf155dc0dab12ada52653b2b210c7d088e7e2d4eb1b122256eca631402
|
|
_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
|
|
}
|