kubernetes-helm: update to 3.15.1

Closes: #50742 [via git-merge-pr]
This commit is contained in:
cinerea0 2024-06-07 21:55:13 -04:00 committed by classabbyamp
parent cb091d0331
commit c4a0b5a1b2
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 18 additions and 44 deletions

View File

@ -1,54 +1,28 @@
# Template file for 'kubernetes-helm' # Template file for 'kubernetes-helm'
pkgname=kubernetes-helm pkgname=kubernetes-helm
version=3.12.0 version=3.15.1
revision=1 revision=1
hostmakedepends="go make mercurial tar" 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" short_desc="Kubernetes Package Manager"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>" maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://helm.sh/" homepage="https://helm.sh/"
distfiles="https://github.com/helm/helm/archive/v${version}.tar.gz" changelog="https://github.com/helm/helm/releases"
checksum=320076ba47bfdf31f753e92fe8464a1314600ff365acce3b361e067488364b33 distfiles="https://github.com/helm/helm/archive/refs/tags/v${version}.tar.gz"
checksum=3c5380a50e12f80fd5c7c269d5c1956f31933aed740e3ecf0ab12bc853e0cf28
conflicts="helm" conflicts="helm"
nopie=true nopie=yes
_convert_arch() { LDFLAGS="-fuse-ld=bfd"
case "$1" in
aarch64*) echo arm64;; post_install() {
armv6*) echo arm;; for shell in bash zsh; do
armv7*) echo arm;; vtargetrun "${DESTDIR}/usr/bin/helm" completion "${shell}" > "helm.${shell}"
i686*) echo 386;; vcompletion "helm.${shell}" "${shell}"
x86_64*) echo amd64;; done
ppc64le*) echo ppc64le;;
esac
}
export _go_target_arch=$(_convert_arch $XBPS_TARGET_MACHINE)
export _go_host_arch=$(_convert_arch $XBPS_MACHINE)
do_extract() {
mkdir -p golib/src/k8s.io/helm
tar -xvzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/v${version}.tar.gz \
-C golib/src/k8s.io/helm \
--strip-components 1 \
helm-${version}
}
do_build() {
cd golib/src/k8s.io/helm
make build-cross TARGETS="linux/${_go_target_arch} linux/${_go_host_arch}" APP="..." LDFLAGS="-X helm.sh/helm/v3/internal/version.version=v${version} -X helm.sh/helm/v3/internal/version.metadata="
_dist/linux-${_go_host_arch}/helm completion bash > completion.bash
_dist/linux-${_go_host_arch}/helm completion zsh > completion.zsh
}
do_install() {
cd golib/src/k8s.io/helm
# Copy helm binary
vbin _dist/linux-${_go_target_arch}/helm
# Copy completion files
vinstall completion.bash 644 usr/share/bash-completion/completions helm
vinstall completion.zsh 644 usr/share/$pkgname
} }