summaryrefslogtreecommitdiff
path: root/testing/rke/APKBUILD
blob: e4b50d8ec2ea53168cc8c61a55f5d777ffcb8aaa (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.4.3
pkgrel=10
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="
a87aa0f71dff96e40f53e758fe588f0f941844bfdf30610a528b835622af45426b4af789a7beee35796ecc3bc7fcbb7831bc28168fdb67a093adf9f9f4e05542  rke-1.4.3.tar.gz
"