45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'minikube'
|
|
pkgname=minikube
|
|
version=0.28.0
|
|
revision=1
|
|
only_for_archs="x86_64 x86_64-musl"
|
|
build_style=go
|
|
hostmakedepends="git go-bindata python pkg-config"
|
|
makedepends="libvirt-devel"
|
|
go_import_path="k8s.io/minikube"
|
|
short_desc="Minikube is a tool that makes it easy to run Kubernetes locally"
|
|
maintainer="Daniel Santana <daniel@santana.tech>"
|
|
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
|
|
git clone -b v${version} https://github.com/kubernetes/minikube $wrksrc
|
|
}
|
|
|
|
do_build() {
|
|
make
|
|
make out/docker-machine-driver-kvm2
|
|
|
|
out/minikube completion bash > completion.bash
|
|
out/minikube completion zsh > 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/$pkgname
|
|
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
|
|
}
|
|
}
|