mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
# Contributor: techknowlogick <techknowlogick@gitea.io>
|
|
# Maintainer: techknowlogick <techknowlogick@gitea.io>
|
|
pkgname=helm
|
|
pkgver=3.11.3
|
|
pkgrel=0
|
|
pkgdesc="The Kubernetes Package Manager"
|
|
url="https://helm.sh/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="bash go"
|
|
options="net"
|
|
subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/helm/helm/archive/v$pkgver.tar.gz"
|
|
|
|
# secfixes:
|
|
# 3.6.0-r0:
|
|
# - CVE-2021-21303
|
|
# 3.6.1-r0:
|
|
# - CVE-2021-32690
|
|
|
|
case "$CARCH" in
|
|
# Disable check on 32bit systems due to upstream test "TestPlatformPrepareCommand" that does not account for these platforms
|
|
# s390x fails in a loop
|
|
s390x|x86|armv7|armhf) options="$options !check" ;;
|
|
esac
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
export CGO_ENABLED=0
|
|
|
|
build() {
|
|
export CGO_ENABLED=0 # breaks on aarch64
|
|
make GOFLAGS="$GOFLAGS" GIT_TAG="v$pkgver" GIT_COMMIT="" GIT_DIRTY=""
|
|
|
|
./bin/helm completion bash > $pkgname.bash
|
|
./bin/helm completion fish > $pkgname.fish
|
|
./bin/helm completion zsh > $pkgname.zsh
|
|
}
|
|
|
|
check() {
|
|
make test-unit GOFLAGS="$GOFLAGS"
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/helm -t "$pkgdir/usr/bin"
|
|
|
|
install -Dm644 $pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname
|
|
install -Dm644 $pkgname.fish "$pkgdir"/usr/share/fish/completions/$pkgname.fish
|
|
install -Dm644 $pkgname.zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
806f34f6ab678431cd4017c3438b842213ee04090891b438f25b00069ead3c901c7c6e66f0cbb210b1432569fe8cb99ee6eb9a048a17d5a36356b86a4f049fac helm-3.11.3.tar.gz
|
|
"
|