aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rke/APKBUILD
blob: 43ec9ff630c07362e74678017610afd20e019434 (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
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=rke
pkgver=1.2.3
pkgrel=0
pkgdesc="Rancher Kubernetes Engine"
options="!check 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"
builddir="$srcdir/go/src/github.com/rancher/rke"

prepare() {
	default_prepare
	mkdir -p "$srcdir/go/src/github.com/rancher"
	mv "$srcdir/$pkgname-$pkgver" "$builddir"
}

build() {
	export GOPATH="$srcdir/go"
	go build
}

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

sha512sums="fa3a1484fd035028bd65d993e1cc9e025927bc5e786c60a8509f8defe1bedea3101618929ca898e85249c6e00df98f0a00736297872917f6510149c2838242d2  rke-1.2.3.tar.gz"