aboutsummaryrefslogtreecommitdiffstats
path: root/testing/helm/APKBUILD
blob: 36896784a381e0d62c7b825e616f32760edd021b (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
# Contributor: techknowlogick <techknowlogick@gitea.io>
# Maintainer: techknowlogick <techknowlogick@gitea.io>
pkgname=helm
pkgver=3.6.0
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"

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="
37aff22861edfade198c006d39b0fef126bb2584076dae2631032d8ce73ea9b8243cb6a8b371d52e8015e6ffd2824d6aace75350176aea52e5e09083fa63bee9  helm-3.6.0.tar.gz
"