# Template file for 'minikube' pkgname=minikube version=1.3.1 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" makedepends="libvirt-devel" depends="kubectl" short_desc="Tool to make it easy to run Kubernetes locally" maintainer="Daniel Santana " license="Apache-2.0" homepage="https://github.com/kubernetes/minikube" 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 } 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 } 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 vlicense LICENSE } 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 vlicense LICENSE } }