forked from segmentio/chamber
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.tools
30 lines (24 loc) · 840 Bytes
/
Makefile.tools
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Tools installation recipes
#
# These are fragile, non-portable, and often require root
#
NFPM_VERSION := 0.9.3
#from https://github.com/goreleaser/nfpm/releases/download/v0.9.3/nfpm_0.9.3_checksums.txt
NFPM_SHA256 := f875ac060a30ec5c164e5444a7278322b276707493fa0ced6bfdd56640f0a6ea
nfpm-debian:
cd /tmp && \
curl -Ls https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz > nfpm.tar.gz && \
echo "${NFPM_SHA256} nfpm.tar.gz" | \
sha256sum -c && \
tar xzvf nfpm.tar.gz && \
mv nfpm /usr/local/bin
rpmbuild-debian:
apt update -q && apt install rpm -yq
rpmbuild-darwin:
brew install rpm
sha256sum-darwin:
brew install coreutils && ln -s $$(which gsha256sum) /usr/local/bin/sha256sum`
.PHONY: nfpm-debian \
rpmbuild-debian \
rpmbuild-darwin \
sha256sum-darwin \