minikube: update to 1.18.0.

fix crossbuild (fails due to kubernetes), remove git clone.
This commit is contained in:
Enno Boland 2021-03-04 09:38:45 +01:00 committed by Enno Boland
parent 2ed423841e
commit f85145c4d6
1 changed files with 15 additions and 26 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'minikube'
pkgname=minikube
version=1.13.0
version=1.18.0
revision=1
archs="x86_64* ppc64le*"
build_wrksrc=src/k8s.io/minikube
build_style=go
go_import_path=k8s.io/minikube
hostmakedepends="git go-bindata python pkg-config"
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"
@ -14,15 +13,8 @@ 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"
do_fetch() {
# We must clone it instead of downloading the tarball because the build
# process expects the directory to be a git repository
rm -rf $wrksrc
mkdir -p $wrksrc/src/k8s.io
git clone -b v${version} https://github.com/kubernetes/minikube \
$wrksrc/src/k8s.io/minikube
}
distfiles="https://github.com/kubernetes/minikube/archive/v$version.tar.gz"
checksum="c3f0f60607bca0c2f1a118d6d5ce313ac0c6e56b5f9621cb00ca17271aceaff6"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
@ -30,21 +22,18 @@ pre_configure() {
esac
}
do_build() {
export GOPATH="$wrksrc"
make
make out/docker-machine-driver-kvm2
out/minikube completion bash > completion.bash
out/minikube completion zsh | sed -n '/#compdef/,$p' > completion.zsh
pre_build() {
make pkg/minikube/assets/assets.go pkg/minikube/translate/translations.go
}
do_install() {
vbin out/minikube
vbin out/docker-machine-driver-kvm2
vinstall completion.bash 644 usr/share/bash-completion/completions minikube
vinstall completion.zsh 644 usr/share/zsh/site-functions _minikube
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() {