diff options
author | mail_redacted_for_web | 2024-12-01 17:21:59 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2024-12-01 17:21:59 +0100 |
commit | fe4e9ea42caf1aaae9eef67beff590730c8e3190 (patch) | |
tree | cd56585e47cc0225d13931aaccab9b25066d2321 /nfpm/Makefile | |
download | forgejo-lirion-fe4e9ea42caf1aaae9eef67beff590730c8e3190.tar.bz2 |
InComm
Diffstat (limited to 'nfpm/Makefile')
-rw-r--r-- | nfpm/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nfpm/Makefile b/nfpm/Makefile new file mode 100644 index 0000000..eaf4e3f --- /dev/null +++ b/nfpm/Makefile @@ -0,0 +1,42 @@ +FJVER := 9.0.2 + +all: skel chglog build + +skel: skel-amd64 skel-arm-6 skel-arm64 + +skel-amd64: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/amd64/g;s/forge.$$/forge.\n/' > nfpm-amd64.yaml +skel-arm-6: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/arm-6/g;s/forge.$$/forge.\n/' > nfpm-arm-6.yaml +skel-arm64: + @grep -vP '^[\t\ ]*#' nfpm.yaml.skel | tr -s '\n' | sed 's/{%FJVER%}/${FJVER}/g;s/{%FJARCH%}/arm64/g;s/forge.$$/forge.\n/' > nfpm-arm64.yaml + +build: build-deb build-rpm build-arch + +build-deb: build-deb-amd64 build-deb-arm-6 build-deb-arm64 +build-deb-amd64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-amd64.yaml --packager deb --target ./build/ +build-deb-arm-6: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm-6.yaml --packager deb --target ./build/ +build-deb-arm64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm64.yaml --packager deb --target ./build/ + +build-rpm: build-rpm-amd64 build-rpm-arm-6 build-rpm-arm64 +build-rpm-amd64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-amd64.yaml --packager rpm --target ./build/ +build-rpm-arm-6: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm-6.yaml --packager rpm --target ./build/ +build-rpm-arm64: + @mkdir -pv ./build + @nfpm pkg -f ./nfpm-arm64.yaml --packager rpm --target ./build/ + +chglog: + @chglog init + +clean: + @rm -rv ./build |