summaryrefslogtreecommitdiff
path: root/helm/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-08-22 02:12:39 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-08-22 02:12:39 +0200
commit75ff356779f7d3791ef97b2669e5ca1d80cbed3a (patch)
treebd6178f546f03d93ef69cce7899303e9d6df124b /helm/Makefile
parentfixup! add cri-tools 1.24 (diff)
add package for helm
Diffstat (limited to 'helm/Makefile')
-rw-r--r--helm/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/helm/Makefile b/helm/Makefile
new file mode 100644
index 0000000..01cc380
--- /dev/null
+++ b/helm/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+DOWNLOAD_BASEURL := "https://get.helm.sh"
+
+.PHONY: clean
+
+all: i386/helm amd64/helm
+
+%/helm: helm-v$(VERSION)-linux-%.tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
+
+helm-v$(VERSION)-linux-%.tar.gz:
+ wget -nc --progress=dot:mega "$(DOWNLOAD_BASEURL)/$(shell echo $@ | sed s/i386/386/)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf i386
+ rm -rf amd64
+ rm -f helm-v$(VERSION)-linux-*.tar.gz