summaryrefslogtreecommitdiff
path: root/testing/rke/APKBUILD
blob: fc21204cb52a8919548d6368632eb341dc79414f (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: Lucas Ramage <lucas.ramage@infinite-omicron.com>
# Maintainer: Lucas Ramage <lucas.ramage@infinite-omicron.com>
pkgname=rke
pkgver=1.3.14
pkgrel=2
pkgdesc="Rancher Kubernetes Engine"
options="!check net chmod-clean"
url="https://github.com/rancher/rke"
license="Apache-2.0"
arch="all"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rancher/rke/archive/v$pkgver.tar.gz"

# secfixes:
#   1.3.2-r0:
#     - CVE-2021-25742

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -v -ldflags "-X main.VERSION=v$pkgver"
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
36e08901fc694b4b2b6015a27f9910a4710aa7adaccb70ff18d046880a4bdea5e4a127e9962045d09da56dfbca35f54a6b3303dac3f8a18ea5960eeb43499feb  rke-1.3.14.tar.gz
"