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-04-07 10:08:13 +0300 committer: kx <kx@radix.pro> 2023-04-07 10:08:13 +0300 commit: 1d161c7be1ce8365f04bb253c5af1bf842d2e0eb parent: 56d70fdfbe2c742180a1a6a1976826a66bf8b96d
Commit Summary:
development packages
Diffstat:
1 file changed, 29 insertions, 0 deletions
diff --git a/packages/d/mercurial/Makefile b/packages/d/mercurial/Makefile
new file mode 100644
index 0000000..9d958d5
--- /dev/null
+++ b/packages/d/mercurial/Makefile
@@ -0,0 +1,38 @@
+#
+# Project Home:
+# ============
+# https://www.mercurial-scm.org
+#
+# Downloads:
+# =========
+# https://www.mercurial-scm.org/release/mercurial-${VERSION}.tar.gz
+#
+
+url         = https://www.mercurial-scm.org/release
+
+versions    = 6.0.1 6.3.3
+pkgname     = mercurial
+suffix      = tar.gz
+
+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 tarball in $(tarballs) ; do \
+	  wget -N $(url)/$$tarball ; \
+	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)