pantry/projects/helm.sh/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

28 lines
713 B
YAML

distributable:
url: https://github.com/helm/helm/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: helm/helm/releases/tags
provides:
- bin/helm
build:
dependencies:
go.dev: ^1.19
script: |
sed 's/unreleased//g' Makefile > Makefile.patch
mv Makefile.patch Makefile
make build VERSION={{version}}
mkdir -p "{{ prefix }}"/bin
mv bin/helm "{{ prefix }}"/bin
# temporary sed hacks above until brewkit supports cloning git directly see issue: https://github.com/teaxyz/brewkit/issues/17
test:
script: |
helm create foo
test -d "foo/charts"
helm version | grep "GitTreeState:\"clean\""
helm version | grep "Version:\"{{version}}\""