diff --git a/srcpkgs/kustomize/template b/srcpkgs/kustomize/template new file mode 100644 index 00000000000000..7ec66a4c220d23 --- /dev/null +++ b/srcpkgs/kustomize/template @@ -0,0 +1,30 @@ +# Template file for 'kustomize' +pkgname=kustomize +version=5.8.1 +revision=1 +build_style=go +go_import_path="sigs.k8s.io/kustomize/kustomize/v5" +short_desc="Template-free customization of Kubernetes YAML manifests" +maintainer="Aaron Duxler " +license="Apache-2.0" +homepage="https://github.com/kubernetes-sigs/kustomize" +distfiles="https://github.com/kubernetes-sigs/kustomize/archive/kustomize/v${version}.tar.gz" +checksum=4ea5a974c46ad6efcde4fd9c339ab1bd278a80b6872dda2d1a366936e4638475 + +do_check() { + cd kustomize + go test -p "$XBPS_MAKEJOBS" ./... +} + +post_build() { + for shell in bash fish zsh; do + CGO_ENABLED=0 GOARCH="" go run kustomize/main.go completion "$shell" \ + >"completion.$shell" + done +} + +post_install() { + for shell in bash fish zsh; do + vcompletion "completion.$shell" "$shell" + done +}