Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
c9b87548 (kx 2023-04-06 16:08:32 +0300   1) #
c9b87548 (kx 2023-04-06 16:08:32 +0300   2) # Project Home:
c9b87548 (kx 2023-04-06 16:08:32 +0300   3) # ============
c9b87548 (kx 2023-04-06 16:08:32 +0300   4) # https://invisible-island.net/ncurses/announce.html
c9b87548 (kx 2023-04-06 16:08:32 +0300   5) #
c9b87548 (kx 2023-04-06 16:08:32 +0300   6) # Downloads:
c9b87548 (kx 2023-04-06 16:08:32 +0300   7) # =========
c9b87548 (kx 2023-04-06 16:08:32 +0300   8) # ftp://invisible-island.net/ncurses/
c9b87548 (kx 2023-04-06 16:08:32 +0300   9) # ftp://ftp.gnu.org/pub/gnu/ncurses/
c9b87548 (kx 2023-04-06 16:08:32 +0300  10) #
c9b87548 (kx 2023-04-06 16:08:32 +0300  11) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  12) url         = https://invisible-island.net/archives/ncurses
c9b87548 (kx 2023-04-06 16:08:32 +0300  13) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  14) version     = 6.4
c9b87548 (kx 2023-04-06 16:08:32 +0300  15) pkgname     = ncurses
c9b87548 (kx 2023-04-06 16:08:32 +0300  16) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  17) downloads   = downloads
c9b87548 (kx 2023-04-06 16:08:32 +0300  18) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  19) suffix      = tar.gz
c9b87548 (kx 2023-04-06 16:08:32 +0300  20) tarballs    = $(addprefix $(downloads)/, $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version))))
c9b87548 (kx 2023-04-06 16:08:32 +0300  21) sha1s       = $(addsuffix .sha1sum, $(tarballs))
c9b87548 (kx 2023-04-06 16:08:32 +0300  22) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  23) dates       = 20230107 20230114 20230121 20230128 20230211 20230218 20230225 20230311
3f81dafc (kx 2024-09-04 15:28:09 +0300  24) dates      += 20230401 20230408 20230415 20230418 20230423 20230424 20230429 20230506
3f81dafc (kx 2024-09-04 15:28:09 +0300  25) dates      += 20230514 20230520 20230527 20230603 20230610 20230615 20230617 20230624
3f81dafc (kx 2024-09-04 15:28:09 +0300  26) dates      += 20230625 20230701 20230708 20230715 20230722 20230729 20230805 20230812
3f81dafc (kx 2024-09-04 15:28:09 +0300  27) dates      += 20230819 20230826 20230902 20230909 20230917 20230918 20230923 20231001
3f81dafc (kx 2024-09-04 15:28:09 +0300  28) dates      += 20231007 20231014 20231016 20231021 20231028 20231104 20231111 20231118
3f81dafc (kx 2024-09-04 15:28:09 +0300  29) dates      += 20231121 20231125 20231202 20231209 20231217 20231223 20231230 20240106
3f81dafc (kx 2024-09-04 15:28:09 +0300  30) dates      += 20240113 20240120 20240127 20240203 20240210 20240217 20240224 20240302
3f81dafc (kx 2024-09-04 15:28:09 +0300  31) dates      += 20240309 20240323 20240330 20240413 20240414 20240420
c9b87548 (kx 2023-04-06 16:08:32 +0300  32) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  33) psuffix     = patch.gz
c9b87548 (kx 2023-04-06 16:08:32 +0300  34) patches     = $(addprefix $(downloads)/, $(addsuffix .$(psuffix), $(addprefix $(pkgname)-$(version)-, $(dates))))
c9b87548 (kx 2023-04-06 16:08:32 +0300  35) psha1s      = $(addsuffix .sha1sum, $(patches))
c9b87548 (kx 2023-04-06 16:08:32 +0300  36) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  37) date        = $(shell echo $(dates) | tr ' ' '\n' | tail -1)
c9b87548 (kx 2023-04-06 16:08:32 +0300  38) lsuffix     = tar.xz
c9b87548 (kx 2023-04-06 16:08:32 +0300  39) latest      = $(pkgname)-$(version)-$(date).$(lsuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300  40) lsha1s      = $(addsuffix .sha1sum, $(latest))
c9b87548 (kx 2023-04-06 16:08:32 +0300  41) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  42) all: $(tarballs) $(sha1s) $(patches) $(psha1s) $(latest) $(lsha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300  43) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  44) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300  45) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  46) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300  47) 	@echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300  48) 	@mkdir -p $(CURDIR)/downloads
c9b87548 (kx 2023-04-06 16:08:32 +0300  49) 	@for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300  50) 	  tarball=`basename $$tarball` ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  51) 	  wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  52) 	  mv $$tarball $(downloads)/ ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  53) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300  54) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  55) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300  56) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300  57) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  58) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  59) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300  60) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  61) $(patches):
c9b87548 (kx 2023-04-06 16:08:32 +0300  62) 	@echo -e "\n======= Downloading patches for $(pkgname)-$(version) =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300  63) 	@for patch in $(patches) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300  64) 	  patch=`basename $$patch` ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  65) 	  wget -N $(url)/$(version)/$$patch ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  66) 	  mv $$patch $(downloads)/ ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  67) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300  68) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  69) $(psha1s): %.$(psuffix).sha1sum : %.$(psuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300  70) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300  71) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  72) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  73) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300  74) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  75) $(latest): $(sha1s) $(psha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300  76) 	@echo -e "\n======= Create patched $(latest) tarball =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300  77) 	@for tarball in $(pkgname)-$(version).$(suffix) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300  78) 	   ( cd $(downloads) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  79) 	     tar -xzf $$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  80) 	     ( cd $(pkgname)-$(version) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  81) 	       patches="$(addsuffix .$(psuffix), $(addprefix ../$(pkgname)-$(version)-, $(dates)))" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  82) 	       for patch in `echo $${patches} | sort` ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  83) 	         echo "" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  84) 	         echo "#" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  85) 	         echo "# apply: $$patch" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  86) 	         echo "#" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  87) 	         zcat $$patch | patch -p1 ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  88) 	       done ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  89) 	     ) ; \
820e9304 (kx 2023-04-16 20:06:28 +0300  90) 	     mv $(pkgname)-$(version) $(pkgname)-$(version)-$(date) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  91) 	     tar -cJf $(latest) $(pkgname)-$(version)-$(date) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  92) 	     mv $(latest) .. ; \
820e9304 (kx 2023-04-16 20:06:28 +0300  93) 	     rm -rf $(pkgname)-$(version)-$(date) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  94) 	   ) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300  95) 	 done
3f81dafc (kx 2024-09-04 15:28:09 +0300  96) 	@rm -rf $(downloads)
c9b87548 (kx 2023-04-06 16:08:32 +0300  97) 
c9b87548 (kx 2023-04-06 16:08:32 +0300  98) $(lsha1s): %.$(lsuffix).sha1sum : %.$(lsuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300  99) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 100) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 101) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300 102) 	 done
c9b87548 (kx 2023-04-06 16:08:32 +0300 103) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 104) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 105) 	@rm -rf $(downloads) *.$(lsuffix) *.sha1sum