kubernetes-helm: update to 3.5.3

This commit is contained in:
Mate GABRI 2021-04-12 08:54:55 +10:00 committed by Érico Nogueira Rolim
parent 12e3713235
commit 4555723cac
1 changed files with 5 additions and 18 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'kubernetes-helm'
pkgname=kubernetes-helm
version=3.3.1
revision=1
version=3.5.3
revision=2
wrksrc="helm-${version}"
hostmakedepends="go make git mercurial tar"
short_desc="Kubernetes Package Manager"
@ -9,7 +9,7 @@ maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="Apache-2.0"
homepage="https://helm.sh/"
distfiles="https://github.com/helm/helm/archive/v${version}.tar.gz"
checksum=7a0ca710683d264bfa79eeed61f1dfd90db2cc755cbc1d1e9ccbb43ec55917b6
checksum=bd3e2488011e0a73650e810cf540fcfcfcb828ff1480cc2c5a1e50934cad9d82
conflicts="helm"
nopie=true
@ -35,23 +35,10 @@ do_extract() {
helm-${version}
}
pre_build() {
export GOPATH="$(pwd)/golib"
## The current version of glide in the repository has
## a bug that prevents building, so pull the current
## version from git.
CC=/bin/gcc go get github.com/Masterminds/glide
CC=/bin/gcc go get github.com/mitchellh/gox
CC=/bin/gcc go install github.com/Masterminds/glide
CC=/bin/gcc go install github.com/mitchellh/gox
PATH="$PATH:$(pwd)/golib/bin/"
export PATH
}
do_build() {
cd golib/src/k8s.io/helm
make build-cross TARGETS="linux/${_go_target_arch} linux/${_go_host_arch}" APP="..." LDFLAGS="-X k8s.io/helm/pkg/version.Version=v${version} -X k8s.io/helm/pkg/version.BuildMetadata="
go mod tidy # can be removed with 3.6.0; see https://github.com/helm/helm/issues/9479
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