diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-07-20 23:41:31 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-07-20 23:41:31 +0200 |
commit | ee31310cd284078b182855ccb2c6f893ab673a62 (patch) | |
tree | 645d0d62328ad5010e5bf1bcea5b1a4b1f817125 /sachet/Makefile | |
parent | bump package versions to newest release (diff) |
add package for sachet
Diffstat (limited to 'sachet/Makefile')
-rw-r--r-- | sachet/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sachet/Makefile b/sachet/Makefile new file mode 100644 index 0000000..a51c702 --- /dev/null +++ b/sachet/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +#GITHUB_BASEURL := "https://github.com/messagebird/sachet/releases/download" +GITHUB_BASEURL := "https://build.spreadspace.org/pub/sachet" + +.PHONY: clean + +all: amd64/sachet + +%/sachet: sachet-$(VERSION).linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 + +sachet-$(VERSION).linux-%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -f sachet-$(VERSION).linux-*.tar.gz |