diff options
Diffstat (limited to 'community/helm/APKBUILD')
-rw-r--r-- | community/helm/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/community/helm/APKBUILD b/community/helm/APKBUILD new file mode 100644 index 00000000000..10795dcf8ea --- /dev/null +++ b/community/helm/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: techknowlogick <techknowlogick@gitea.io> +# Maintainer: techknowlogick <techknowlogick@gitea.io> +pkgname=helm +pkgver=3.14.3 +pkgrel=1 +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 + unset-CGO_ENABLED.patch + " + +# secfixes: +# 3.6.0-r0: +# - CVE-2021-21303 +# 3.6.1-r0: +# - CVE-2021-32690 + +case "$CARCH" in + # arm*: + # --- FAIL: TestInvalidYaml (0.01s) + # lint_test.go:87: All didn't fail with expected errors, got []support.Message(nil) + # -- FAIL: TestPlatformPrepareCommand (0.00s) + # plugin_test.go:45: Expected arg="os-arch", got "linux-riscv64" + # plugin_test.go:64: Expected arg="os-arch", got "linux-riscv64" + # + # riscv64: + # ../go/github.com/bugsnag/panicwrap@v0.0.0-20151223152923-e2c28503fcd0/dup2.go:10:17: undefined: syscall.Dup2 + # FAIL helm.sh/helm/v3/cmd/helm [build failed] + # ... + # FAIL + arm*|riscv64) options="$options !check" ;; +esac + +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" + +export GOFLAGS="$GOFLAGS -modcacherw" + +build() { + 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/vendor_completions.d/$pkgname.fish + install -Dm644 $pkgname.zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname +} + +sha512sums=" +655771325c92c17e1c7c176aa1793831dcf6307106d5fb77ec101fb2faa8156661ee955e1905828161b9bd881d393188d0dd4db520096337125ae61607c44ef8 helm-3.14.3.tar.gz +94af7ed03f565d85ede2f2a34f6a63a275535a937514740d3fed2ea47418806dcd532857c5103a35b0dd38333315eefd0500568475afc8a16e19a799a2f7c7b7 unset-CGO_ENABLED.patch +" |