Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-04-05 22:22:22 +0300 committer: kx <kx@radix.pro> 2023-04-05 22:22:22 +0300 commit: 06fd19843ab5ddcb49c6f8741f1711778ff9f9eb parent: a0610b8d15a051d96037351979fca24039cfa884
Commit Summary:
Perl modules
Diffstat:
1 file changed, 34 insertions, 0 deletions
diff --git a/packages/d/perl-modules/CPAN/Module-Install/Makefile b/packages/d/perl-modules/CPAN/Module-Install/Makefile
new file mode 100644
index 0000000..3440eea
--- /dev/null
+++ b/packages/d/perl-modules/CPAN/Module-Install/Makefile
@@ -0,0 +1,43 @@
+#
+# Project Home:
+# ============
+#  http://www.cpan.org/modules/index.html
+#
+# Install instruction:
+# ===================
+#  http://www.cpan.org/modules/INSTALL.html
+#
+# Search CPAN:
+# ===========
+#  https://metacpan.org
+#  http://search.cpan.org
+#
+
+url         = https://ftp.radix.pro/3pp/perl-modules/CPAN/Module-Install
+
+versions    = 1.19
+pkgname     = Module-Install
+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)