Radix cross Linux 3pp sources

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

343 Commits   0 Branches   0 Tags
c704b3ba (kx 2023-04-07 10:41:29 +0300  1) #
c704b3ba (kx 2023-04-07 10:41:29 +0300  2) # Project Home:
c704b3ba (kx 2023-04-07 10:41:29 +0300  3) # ============
c704b3ba (kx 2023-04-07 10:41:29 +0300  4) # https://www.python.org
c704b3ba (kx 2023-04-07 10:41:29 +0300  5) #
c704b3ba (kx 2023-04-07 10:41:29 +0300  6) # Downloads:
c704b3ba (kx 2023-04-07 10:41:29 +0300  7) # =========
c704b3ba (kx 2023-04-07 10:41:29 +0300  8) # https://www.python.org/ftp/python
c704b3ba (kx 2023-04-07 10:41:29 +0300  9) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 10) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 11) url         = https://www.python.org/ftp/python
c704b3ba (kx 2023-04-07 10:41:29 +0300 12) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 13) versions    = 2.7.6 2.7.11 2.7.12 2.7.13 2.7.14 2.7.15 2.7.16 2.7.18
c704b3ba (kx 2023-04-07 10:41:29 +0300 14) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 15) pkgname     = Python
c704b3ba (kx 2023-04-07 10:41:29 +0300 16) suffix      = tar.xz
c704b3ba (kx 2023-04-07 10:41:29 +0300 17) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 18) tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
c704b3ba (kx 2023-04-07 10:41:29 +0300 19) sha1s       = $(addsuffix .sha1sum, $(tarballs))
c704b3ba (kx 2023-04-07 10:41:29 +0300 20) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 21) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 22) all: $(tarballs) $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 23) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 24) .PHONY: downloads_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 25) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 26) $(tarballs):
c704b3ba (kx 2023-04-07 10:41:29 +0300 27) 	@echo -e "\n======= Downloading source tarballs =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 28) 	@for tarball in $(tarballs) ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 29) 	  version=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\([0-9][.0-9][0-9][.0-9]*\)\([\.].*\)/\2/'` ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 30) 	  wget -N $(url)/$$version/$$tarball ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 31) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 32) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 33) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c704b3ba (kx 2023-04-07 10:41:29 +0300 34) 	@for tarball in $< ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 35) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 36) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 37) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 38) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 39) downloads_clean:
c704b3ba (kx 2023-04-07 10:41:29 +0300 40) 	@rm -rf $(tarballs) $(sha1s)