aports/testing/rke/APKBUILD
2021-07-11 13:34:25 +02:00

40 lines
1.1 KiB
Plaintext

# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=rke
pkgver=1.2.8
pkgrel=1
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"
builddir="$srcdir/go/src/github.com/rancher/rke"
prepare() {
default_prepare
mkdir -p "$srcdir/go/src/github.com/rancher"
mv "$srcdir/$pkgname-$pkgver" "$builddir"
# fix build on riscv64
cd "$builddir"
go mod edit -replace \
github.com/prometheus/procfs=github.com/prometheus/procfs@v0.6.0
go mod tidy
}
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="274e58f3ec5a2b462aea342642bc6616895da66ce0b98162b1165fa4ad40081bbb1aa219a7cdbee17af9d90bf8cf80377fca0dd128ff820d1200a60cefc37863 rke-1.2.8.tar.gz"