minikube: update to 1.18.0.
fix crossbuild (fails due to kubernetes), remove git clone.
This commit is contained in:
parent
2ed423841e
commit
f85145c4d6
1 changed files with 15 additions and 26 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'minikube'
|
# Template file for 'minikube'
|
||||||
pkgname=minikube
|
pkgname=minikube
|
||||||
version=1.13.0
|
version=1.18.0
|
||||||
revision=1
|
revision=1
|
||||||
archs="x86_64* ppc64le*"
|
|
||||||
build_wrksrc=src/k8s.io/minikube
|
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=k8s.io/minikube
|
build_helper=qemu
|
||||||
hostmakedepends="git go-bindata python pkg-config"
|
go_import_path="k8s.io/minikube/cmd/minikube k8s.io/minikube/cmd/drivers/kvm"
|
||||||
|
hostmakedepends="go-bindata python pkg-config git"
|
||||||
makedepends="libvirt-devel"
|
makedepends="libvirt-devel"
|
||||||
depends="kubectl"
|
depends="kubectl"
|
||||||
short_desc="Tool to make it easy to run Kubernetes locally"
|
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"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/kubernetes/minikube"
|
homepage="https://github.com/kubernetes/minikube"
|
||||||
changelog="https://raw.githubusercontent.com/kubernetes/minikube/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/kubernetes/minikube/master/CHANGELOG.md"
|
||||||
|
distfiles="https://github.com/kubernetes/minikube/archive/v$version.tar.gz"
|
||||||
do_fetch() {
|
checksum="c3f0f60607bca0c2f1a118d6d5ce313ac0c6e56b5f9621cb00ca17271aceaff6"
|
||||||
# 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
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -30,21 +22,18 @@ pre_configure() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
pre_build() {
|
||||||
export GOPATH="$wrksrc"
|
make pkg/minikube/assets/assets.go pkg/minikube/translate/translations.go
|
||||||
|
|
||||||
make
|
|
||||||
make out/docker-machine-driver-kvm2
|
|
||||||
|
|
||||||
out/minikube completion bash > completion.bash
|
|
||||||
out/minikube completion zsh | sed -n '/#compdef/,$p' > completion.zsh
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin out/minikube
|
vbin $GOPATH/bin/minikube
|
||||||
vbin out/docker-machine-driver-kvm2
|
vbin $GOPATH/bin/kvm docker-machine-driver-kvm2
|
||||||
vinstall completion.bash 644 usr/share/bash-completion/completions minikube
|
|
||||||
vinstall completion.zsh 644 usr/share/zsh/site-functions _minikube
|
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() {
|
docker-machine-driver-kvm2_package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue