# Template file for 'kubernetes-helm' pkgname=kubernetes-helm version=3.16.3 revision=1 build_style=go build_helper=qemu go_import_path="helm.sh/helm/v3" go_package="./cmd/helm" go_mod_mode=off go_ldflags="-X helm.sh/helm/v3/internal/version.version=v${version%.*}" checkdepends="git" short_desc="Kubernetes Package Manager" maintainer="Kyle Nusbaum " license="Apache-2.0" homepage="https://helm.sh/" changelog="https://github.com/helm/helm/releases" distfiles="https://github.com/helm/helm/archive/refs/tags/v${version}.tar.gz" checksum=d476949802e2293620a4947f1fdd9006b88e4120fe6d0fafaef14b79badb72ee conflicts="helm" nopie=yes LDFLAGS="-fuse-ld=bfd" post_install() { if [ "$XBPS_TARGET_MACHINE" != aarch64-musl ]; then # qemu-aarch64-static segfaults # https://build.voidlinux.org/builders/aarch64-musl_builder/builds/49864/steps/shell_3/logs/stdio for shell in bash zsh; do vtargetrun "${DESTDIR}/usr/bin/helm" completion "${shell}" > "helm.${shell}" vcompletion "helm.${shell}" "${shell}" done fi }