Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
#
# Project Home:
# ============
# https://www.php.net
#
# Downloads:
# =========
# https://php.net/downloads.php
# https://www.php.net/downloads.php
#
# wget -O php-5.6.2.tar.bz2 https://ru2.php.net/get/php-5.6.2.tar.bz2/from/this/mirror
#

url         = https://ru2.php.net/get

versions    = 5.6.2 5.6.17
versions   += 7.0.2 7.3.11 7.3.27
versions   += 7.4.16 7.4.27
versions   += 8.0.3 8.0.28
versions   += 8.1.2 8.1.12 8.1.17
versions   += 8.2.4

pkgname     = php
suffix      = tar.xz

tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
signatures  = $(addsuffix .asc, $(tarballs))
sha1s       = $(addsuffix .sha1sum, $(tarballs))


all: $(tarballs) $(signatures) $(sha1s)

.PHONY: downloads_clean

$(tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for tarball in $(tarballs) ; do \
	  wget -O $$tarball $(url)/$$tarball/from/this/mirror ; \
	done

$(signatures): %.$(suffix).asc : %.$(suffix)
	@for signature in $@ ; do \
	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
	  wget -O $$signature $(url)/$$signature/from/this/mirror ; \
	  touch $$signature ; \
	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) $(signatures) $(sha1s)