Radix cross Linux 3pp sources

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

343 Commits   0 Branches   0 Tags
6c108163 (kx 2024-01-18 10:20:13 +0300  1) #
6c108163 (kx 2024-01-18 10:20:13 +0300  2) # Project Home:
6c108163 (kx 2024-01-18 10:20:13 +0300  3) # ============
6c108163 (kx 2024-01-18 10:20:13 +0300  4) #   https://www.gimp.org
6c108163 (kx 2024-01-18 10:20:13 +0300  5) #
6c108163 (kx 2024-01-18 10:20:13 +0300  6) # GitLab:
6c108163 (kx 2024-01-18 10:20:13 +0300  7) # ======
6c108163 (kx 2024-01-18 10:20:13 +0300  8) #   https://gitlab.gnome.org/GNOME/gimp
6c108163 (kx 2024-01-18 10:20:13 +0300  9) #
6c108163 (kx 2024-01-18 10:20:13 +0300 10) # Clone:
6c108163 (kx 2024-01-18 10:20:13 +0300 11) # =====
6c108163 (kx 2024-01-18 10:20:13 +0300 12) #   git clone https://gitlab.gnome.org/GNOME/gimp.git
6c108163 (kx 2024-01-18 10:20:13 +0300 13) #
6c108163 (kx 2024-01-18 10:20:13 +0300 14) # Downloads:
6c108163 (kx 2024-01-18 10:20:13 +0300 15) # =========
6c108163 (kx 2024-01-18 10:20:13 +0300 16) #   https://download.gimp.org/pub/gimp
6c108163 (kx 2024-01-18 10:20:13 +0300 17) #
6c108163 (kx 2024-01-18 10:20:13 +0300 18) 
6c108163 (kx 2024-01-18 10:20:13 +0300 19) 
6c108163 (kx 2024-01-18 10:20:13 +0300 20) url       = https://download.gimp.org/pub
6c108163 (kx 2024-01-18 10:20:13 +0300 21) 
6c108163 (kx 2024-01-18 10:20:13 +0300 22) versions  = 2.99.16
6c108163 (kx 2024-01-18 10:20:13 +0300 23) 
6c108163 (kx 2024-01-18 10:20:13 +0300 24) pkg_name  = gimp
6c108163 (kx 2024-01-18 10:20:13 +0300 25) arch_type = tar.xz
6c108163 (kx 2024-01-18 10:20:13 +0300 26) 
6c108163 (kx 2024-01-18 10:20:13 +0300 27) suffixes  = $(arch_type)
6c108163 (kx 2024-01-18 10:20:13 +0300 28) 
6c108163 (kx 2024-01-18 10:20:13 +0300 29) files     = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions))))
6c108163 (kx 2024-01-18 10:20:13 +0300 30) 
6c108163 (kx 2024-01-18 10:20:13 +0300 31) tarballs  = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions)))
6c108163 (kx 2024-01-18 10:20:13 +0300 32) sha1s     = $(addsuffix .sha1sum, $(tarballs))
6c108163 (kx 2024-01-18 10:20:13 +0300 33) 
6c108163 (kx 2024-01-18 10:20:13 +0300 34) 
6c108163 (kx 2024-01-18 10:20:13 +0300 35) all: $(files) $(sha1s)
6c108163 (kx 2024-01-18 10:20:13 +0300 36) 
6c108163 (kx 2024-01-18 10:20:13 +0300 37) 
6c108163 (kx 2024-01-18 10:20:13 +0300 38) .PHONY: downloads_clean
6c108163 (kx 2024-01-18 10:20:13 +0300 39) 
6c108163 (kx 2024-01-18 10:20:13 +0300 40) $(files):
6c108163 (kx 2024-01-18 10:20:13 +0300 41) 	@echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n"
6c108163 (kx 2024-01-18 10:20:13 +0300 42) 	@for version in $(versions) ; do \
6c108163 (kx 2024-01-18 10:20:13 +0300 43) 	  major_minor=`echo $$version | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'` ; \
6c108163 (kx 2024-01-18 10:20:13 +0300 44) 	  for suffix in $(suffixes) ; do \
6c108163 (kx 2024-01-18 10:20:13 +0300 45) 	    wget -N $(url)/$(pkg_name)/v$$major_minor/$(pkg_name)-$$version.$$suffix ;  \
6c108163 (kx 2024-01-18 10:20:13 +0300 46) 	  done ; \
6c108163 (kx 2024-01-18 10:20:13 +0300 47) 	done
6c108163 (kx 2024-01-18 10:20:13 +0300 48) 
6c108163 (kx 2024-01-18 10:20:13 +0300 49) $(sha1s): %.$(arch_type).sha1sum : %.$(arch_type)
6c108163 (kx 2024-01-18 10:20:13 +0300 50) 	@for tarball in $< ; do \
6c108163 (kx 2024-01-18 10:20:13 +0300 51) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
6c108163 (kx 2024-01-18 10:20:13 +0300 52) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
6c108163 (kx 2024-01-18 10:20:13 +0300 53) 	done
6c108163 (kx 2024-01-18 10:20:13 +0300 54) 
6c108163 (kx 2024-01-18 10:20:13 +0300 55) downloads_clean:
6c108163 (kx 2024-01-18 10:20:13 +0300 56) 	@rm -f $(files) $(sha1s)