aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kops/APKBUILD
blob: dd95442f8e399c0af52319fa23b3c8c2c6645994 (plain)
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
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=kops
pkgver=1.21.1
pkgrel=3
pkgdesc="Kubernetes Operations"
url="https://github.com/kubernetes/kops"
arch="x86_64"
license="Apache-2.0"
depends="kubernetes"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz
	cilium-builder-skip-test-without-sysfs.patch
	"

export GOMODCACHE=$srcdir/go
export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	make kops
}

check() {
	make test
}

package() {
	install -Dm0755 .build/local/kops "$pkgdir"/usr/bin/kops
}

sha512sums="
da295c5b3374b44354fbe4ee1dfe49b6591f2cac8d13c77a3db73a25f15eaface3327327965a7e2d7fb38660a8a3082aad37f4f90094eac82ce62f500524c2d0  kops-1.21.1.tar.gz
b2f76ff1a92d5348ff37be264c789bda8841f7e851b4f05339077bae26c2fd2390def6f9cc8fc087950515e7d41b15a732c8cb7333b46dbf33c06dce0900776e  cilium-builder-skip-test-without-sysfs.patch
"