void-packages/srcpkgs/minikube/template
Enno Boland f85145c4d6 minikube: update to 1.18.0.
fix crossbuild (fails due to kubernetes), remove git clone.
2021-03-05 19:17:03 +01:00

45 lines
1.3 KiB
Bash

# Template file for 'minikube'
pkgname=minikube
version=1.18.0
revision=1
build_style=go
build_helper=qemu
go_import_path="k8s.io/minikube/cmd/minikube k8s.io/minikube/cmd/drivers/kvm"
hostmakedepends="go-bindata python pkg-config git"
makedepends="libvirt-devel"
depends="kubectl"
short_desc="Tool to make it easy to run Kubernetes locally"
maintainer="Daniel Santana <daniel@santana.tech>"
license="Apache-2.0"
homepage="https://github.com/kubernetes/minikube"
changelog="https://raw.githubusercontent.com/kubernetes/minikube/master/CHANGELOG.md"
distfiles="https://github.com/kubernetes/minikube/archive/v$version.tar.gz"
checksum="c3f0f60607bca0c2f1a118d6d5ce313ac0c6e56b5f9621cb00ca17271aceaff6"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
ppc64le*) vsed -i 's/amd64/ppc64le/g' Makefile;;
esac
}
pre_build() {
make pkg/minikube/assets/assets.go pkg/minikube/translate/translations.go
}
do_install() {
vbin $GOPATH/bin/minikube
vbin $GOPATH/bin/kvm docker-machine-driver-kvm2
for shell in bash zsh fish; do
vtargetrun $GOPATH/bin/minikube completion $shell > completion.$shell
vcompletion completion.$shell $shell
done
}
docker-machine-driver-kvm2_package() {
short_desc="Minikube-maintained KVM driver for docker-machine"
depends="libvirt"
pkg_install() {
vmove usr/bin/docker-machine-driver-kvm2
}
}