mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 18:13:50 +02:00
minikube: clean up template
- Disable GOPATH warning during compile - Tweak description - Depend on kubectl - Install zsh completion at right place and remove INSTALL.msg crud Closes: #8206 [via git-merge-pr]
This commit is contained in:
parent
94fa1a7f47
commit
d641de1b98
2 changed files with 12 additions and 10 deletions
|
@ -2,8 +2,3 @@ You might also need install one of the following for Minikube to work:
|
||||||
|
|
||||||
* virtualbox-ose (for VirtualBox driver)
|
* virtualbox-ose (for VirtualBox driver)
|
||||||
* docker-machine-driver-kvm2 (for KVM2 driver)
|
* docker-machine-driver-kvm2 (for KVM2 driver)
|
||||||
|
|
||||||
For bash completions, install the 'bash-completion' package.
|
|
||||||
For zsh completions, put the following code in your ~/.zshrc:
|
|
||||||
|
|
||||||
source /usr/share/minikube/completion.zsh
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
# Template file for 'minikube'
|
# Template file for 'minikube'
|
||||||
pkgname=minikube
|
pkgname=minikube
|
||||||
version=0.33.1
|
version=0.33.1
|
||||||
revision=1
|
revision=2
|
||||||
|
build_wrksrc="src/k8s.io/minikube"
|
||||||
only_for_archs="x86_64 x86_64-musl ppc64le ppc64le-musl"
|
only_for_archs="x86_64 x86_64-musl ppc64le ppc64le-musl"
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="k8s.io/minikube"
|
go_import_path="k8s.io/minikube"
|
||||||
hostmakedepends="git go-bindata python pkg-config"
|
hostmakedepends="git go-bindata python pkg-config"
|
||||||
makedepends="libvirt-devel"
|
makedepends="libvirt-devel"
|
||||||
short_desc="Minikube is a tool that makes it easy to run Kubernetes locally"
|
depends="kubectl"
|
||||||
|
short_desc="Tool to make it easy to run Kubernetes locally"
|
||||||
maintainer="Daniel Santana <daniel@santana.tech>"
|
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"
|
||||||
|
@ -15,22 +17,27 @@ homepage="https://github.com/kubernetes/minikube"
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
# We must clone it instead of downloading the tarball because the build
|
# We must clone it instead of downloading the tarball because the build
|
||||||
# process expects the directory to be a git repository
|
# process expects the directory to be a git repository
|
||||||
git clone -b v${version} https://github.com/kubernetes/minikube $wrksrc
|
rm -rf $wrksrc
|
||||||
|
mkdir -p $wrksrc/src/k8s.io
|
||||||
|
git clone -b v${version} https://github.com/kubernetes/minikube \
|
||||||
|
$wrksrc/src/k8s.io/minikube
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
export GOPATH="$wrksrc"
|
||||||
|
|
||||||
make
|
make
|
||||||
make out/docker-machine-driver-kvm2
|
make out/docker-machine-driver-kvm2
|
||||||
|
|
||||||
out/minikube completion bash > completion.bash
|
out/minikube completion bash > completion.bash
|
||||||
out/minikube completion zsh > completion.zsh
|
out/minikube completion zsh | sed -n '/#compdef/,$p' > completion.zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin out/minikube
|
vbin out/minikube
|
||||||
vbin out/docker-machine-driver-kvm2
|
vbin out/docker-machine-driver-kvm2
|
||||||
vinstall completion.bash 644 usr/share/bash-completion/completions minikube
|
vinstall completion.bash 644 usr/share/bash-completion/completions minikube
|
||||||
vinstall completion.zsh 644 usr/share/$pkgname
|
vinstall completion.zsh 644 usr/share/zsh/site-functions/_minikube
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue