aboutsummaryrefslogtreecommitdiffstats
path: root/testing/helm/APKBUILD
blob: e36734c9113ed30d49ee71fd329ae482f3689348 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: techknowlogick <techknowlogick@gitea.io>
# Maintainer: techknowlogick <techknowlogick@gitea.io>
pkgname=helm
pkgver=3.6.1
pkgrel=0
pkgdesc="The Kubernetes Package Manager"
url="https://helm.sh/"
arch="all !mips !mips64 !armhf" # mips does not have go, unit tests fails with armhf
license="Apache-2.0"
makedepends="bash go"
source="$pkgname-$pkgver.tar.gz::https://github.com/helm/helm/archive/v$pkgver.tar.gz"

# secfixes:
#   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
	x86|armv7) options="$options !check" ;;
esac

export GOPATH="$srcdir/go"
export GOCACHE="$srcdir/go-build"
export GOTEMPDIR="$srcdir/go"

export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	export CGO_ENABLED=0 # breaks on aarch64
	make GOFLAGS="$GOFLAGS"
}

check() {
	make test-unit GOFLAGS="$GOFLAGS"
}

package() {
	install -Dm755 bin/helm -t "$pkgdir/usr/bin"
}

sha512sums="
cb3439960054a694885bf1b6dd5ff5c5dd47851a1b15c95fab7c5cea9c0fb8135dcc3ea7a3b15b2ddb299a98548af0b06a0291167c62f5125de5b5e7bd34c73b  helm-3.6.1.tar.gz
"