Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-05-25 10:35:50 +0300 committer: kx <kx@radix.pro> 2023-05-25 10:35:50 +0300 commit: 44cf90d3fd6f2d70eccf1a57a7cf4fe8dcbfb732 parent: e20de451b504cde1c5899a889114ecfeecfa9ee8
Commit Summary:
geoclue; unifdef
Diffstat:
1 file changed, 29 insertions, 0 deletions
diff --git a/packages/d/unifdef/Makefile b/packages/d/unifdef/Makefile
new file mode 100644
index 0000000..7896953
--- /dev/null
+++ b/packages/d/unifdef/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://dotat.at/prog/unifdef
+#
+# Downloads:
+# =========
+# https://dotat.at/prog/unifdef
+#
+
+url         = https://dotat.at/prog/unifdef
+
+versions    = 2.12
+
+pkgname     = unifdef
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/$(pkgname)-$$version.$(suffix) ;  \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)