mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New Package: kubernetes-helm-2.9.1
This commit is contained in:
parent
69876df427
commit
988c8a78a1
1 changed files with 48 additions and 0 deletions
48
srcpkgs/kubernetes-helm/template
Normal file
48
srcpkgs/kubernetes-helm/template
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
pkgname=kubernetes-helm
|
||||||
|
version=2.9.1
|
||||||
|
revision=1
|
||||||
|
hostmakedepends="go make git mercurial"
|
||||||
|
short_desc="The Kubernetes Package Manager"
|
||||||
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
||||||
|
license="Apache-2.0"
|
||||||
|
homepage="https://helm.sh/"
|
||||||
|
distfiles="https://github.com/helm/helm/archive/v${version}.tar.gz"
|
||||||
|
checksum=2fee31764117024d1cc4f597d23791c60feef7c3ceedd143cfdbbafca7a7e126
|
||||||
|
nopie=true
|
||||||
|
conflicts="helm"
|
||||||
|
wrksrc="helm-${version}"
|
||||||
|
_go_target_arch=$(source /void-packages/common/environment/build-style/go.sh; echo $GOARCH)
|
||||||
|
|
||||||
|
do_extract() {
|
||||||
|
mkdir -p golib/src/k8s.io/helm
|
||||||
|
tar -xvzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/v${version}.tar.gz \
|
||||||
|
-C golib/src/k8s.io/helm \
|
||||||
|
--strip-components 1 \
|
||||||
|
helm-2.9.1
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
export GOPATH="$(pwd)/golib"
|
||||||
|
|
||||||
|
## The current version of glide in the repository has
|
||||||
|
## a bug that prevents building, so pull the current
|
||||||
|
## version from git.
|
||||||
|
CC=/bin/gcc go get github.com/Masterminds/glide
|
||||||
|
CC=/bin/gcc go get github.com/mitchellh/gox
|
||||||
|
CC=/bin/gcc go install github.com/Masterminds/glide
|
||||||
|
CC=/bin/gcc go install github.com/mitchellh/gox
|
||||||
|
PATH="$PATH:$(pwd)/golib/bin/"
|
||||||
|
export PATH
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
cd golib/src/k8s.io/helm
|
||||||
|
TARGETS="linux/${_go_target_arch}" make bootstrap build-cross APP="..."
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vbin golib/src/k8s.io/helm/_dist/linux-${_go_target_arch}/helm
|
||||||
|
vbin golib/src/k8s.io/helm/_dist/linux-${_go_target_arch}/rudder
|
||||||
|
vbin golib/src/k8s.io/helm/_dist/linux-${_go_target_arch}/tiller
|
||||||
|
vlicense golib/src/k8s.io/helm/LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue