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> 2024-01-10 22:47:30 +0300 committer: kx <kx@radix.pro> 2024-01-10 22:47:30 +0300 commit: eeffb0c8292aba8bc5bdab395340e9b9343ab69a parent: e5e57eb92111b616b48410e71b091eeb8df79c88
Commit Summary:
perl-modules: Alien::Base::Wrapper, Alien::Libxml2
Diffstat:
1 file changed, 34 insertions, 0 deletions
diff --git a/packages/d/perl-modules/CPAN/Alien-Build/Makefile b/packages/d/perl-modules/CPAN/Alien-Build/Makefile
new file mode 100644
index 0000000..b50b936
--- /dev/null
+++ b/packages/d/perl-modules/CPAN/Alien-Build/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/Alien-Build
+
+versions    = 2.80
+pkgname     = Alien-Build
+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)