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:
Diffstat:
1 file changed, 34 insertions, 0 deletions
diff --git a/packages/d/perl-modules/CPAN/Error/Makefile b/packages/d/perl-modules/CPAN/Error/Makefile new file mode 100644 index 0000000..cedfd9d --- /dev/null +++ b/packages/d/perl-modules/CPAN/Error/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/Error + +versions = 0.17029 +pkgname = Error +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)