void-packages/srcpkgs/kubernetes-helm/template

33 lines
1023 B
Bash

# Template file for 'kubernetes-helm'
pkgname=kubernetes-helm
version=3.15.1
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}"
short_desc="Kubernetes Package Manager"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
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=3c5380a50e12f80fd5c7c269d5c1956f31933aed740e3ecf0ab12bc853e0cf28
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
}