summaryrefslogtreecommitdiff
path: root/testing/kops/APKBUILD
blob: f000d10d6cdd0c7efed84ec96da4f6ae68016ba4 (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
35
36
37
38
39
40
41
42
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=kops
pkgver=1.24.1
pkgrel=1
pkgdesc="Kubernetes Operations"
url="https://github.com/kubernetes/kops"
arch="x86_64"
license="Apache-2.0"
depends="kubernetes"
makedepends="go"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz"

export GOFLAGS="$GOFLAGS -modcacherw -mod=readonly"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"

prepare() {
	default_prepare

	# v0.1.6 is broken with go1.18
	go mod edit -replace golang.org/x/tools=golang.org/x/tools@v0.1.8
	go mod tidy
}

build() {
	make kops
}

check() {
	make test
}

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

sha512sums="
f73c8e0017d3b976bc80f155e334e7033714deac6f0d7a135f2f2d7e5862b17f9053d575809babf1484ebddac51c2304b1563cd744782403d951d86aa954e1ae  kops-1.24.1.tar.gz
"