Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
3f81dafc (kx 2024-09-04 15:28:09 +0300   1) #
3f81dafc (kx 2024-09-04 15:28:09 +0300   2) # Project Home:
3f81dafc (kx 2024-09-04 15:28:09 +0300   3) # ============
3f81dafc (kx 2024-09-04 15:28:09 +0300   4) # https://invisible-island.net/ncurses/announce.html
3f81dafc (kx 2024-09-04 15:28:09 +0300   5) #
3f81dafc (kx 2024-09-04 15:28:09 +0300   6) # Downloads:
3f81dafc (kx 2024-09-04 15:28:09 +0300   7) # =========
3f81dafc (kx 2024-09-04 15:28:09 +0300   8) # ftp://invisible-island.net/ncurses/
3f81dafc (kx 2024-09-04 15:28:09 +0300   9) # ftp://ftp.gnu.org/pub/gnu/ncurses/
3f81dafc (kx 2024-09-04 15:28:09 +0300  10) #
3f81dafc (kx 2024-09-04 15:28:09 +0300  11) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  12) url         = https://invisible-island.net/archives/ncurses
3f81dafc (kx 2024-09-04 15:28:09 +0300  13) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  14) version     = 6.5
3f81dafc (kx 2024-09-04 15:28:09 +0300  15) pkgname     = ncurses
3f81dafc (kx 2024-09-04 15:28:09 +0300  16) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  17) downloads   = downloads
3f81dafc (kx 2024-09-04 15:28:09 +0300  18) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  19) suffix      = tar.gz
3f81dafc (kx 2024-09-04 15:28:09 +0300  20) tarballs    = $(addprefix $(downloads)/, $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version))))
3f81dafc (kx 2024-09-04 15:28:09 +0300  21) sha1s       = $(addsuffix .sha1sum, $(tarballs))
3f81dafc (kx 2024-09-04 15:28:09 +0300  22) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  23) dates       = 20240504 20240511 20240518 20240519 20240525 20240601 20240608 20240615
3f81dafc (kx 2024-09-04 15:28:09 +0300  24) dates      += 20240622 20240629 20240706 20240713 20240720 20240727 20240810 20240817
a3914a20 (kx 2024-12-16 22:15:27 +0300  25) dates      += 20240824 20240831 20240914 20240922 20240928 20241006 20241019 20241026
cdea2ed2 (kx 2025-03-01 09:14:02 +0300  26) dates      += 20241102 20241109 20241123 20241130 20241207 20241214 20241221 20241228
cdea2ed2 (kx 2025-03-01 09:14:02 +0300  27) dates      += 20250104 20250111 20250118 20250125 20250201 20250208 20250215 20250216
cdea2ed2 (kx 2025-03-01 09:14:02 +0300  28) dates      += 20250222
3f81dafc (kx 2024-09-04 15:28:09 +0300  29) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  30) psuffix     = patch.gz
3f81dafc (kx 2024-09-04 15:28:09 +0300  31) patches     = $(addprefix $(downloads)/, $(addsuffix .$(psuffix), $(addprefix $(pkgname)-$(version)-, $(dates))))
3f81dafc (kx 2024-09-04 15:28:09 +0300  32) psha1s      = $(addsuffix .sha1sum, $(patches))
3f81dafc (kx 2024-09-04 15:28:09 +0300  33) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  34) date        = $(shell echo $(dates) | tr ' ' '\n' | tail -1)
3f81dafc (kx 2024-09-04 15:28:09 +0300  35) lsuffix     = tar.xz
3f81dafc (kx 2024-09-04 15:28:09 +0300  36) latest      = $(pkgname)-$(version)-$(date).$(lsuffix)
3f81dafc (kx 2024-09-04 15:28:09 +0300  37) lsha1s      = $(addsuffix .sha1sum, $(latest))
3f81dafc (kx 2024-09-04 15:28:09 +0300  38) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  39) all: $(tarballs) $(sha1s) $(patches) $(psha1s) $(latest) $(lsha1s)
3f81dafc (kx 2024-09-04 15:28:09 +0300  40) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  41) .PHONY: downloads_clean
3f81dafc (kx 2024-09-04 15:28:09 +0300  42) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  43) $(tarballs):
3f81dafc (kx 2024-09-04 15:28:09 +0300  44) 	@echo -e "\n======= Downloading source tarballs =======\n"
3f81dafc (kx 2024-09-04 15:28:09 +0300  45) 	@mkdir -p $(CURDIR)/downloads
3f81dafc (kx 2024-09-04 15:28:09 +0300  46) 	@for tarball in $(tarballs) ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  47) 	  tarball=`basename $$tarball` ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  48) 	  wget -N $(url)/$$tarball ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  49) 	  mv $$tarball $(downloads)/ ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  50) 	done
3f81dafc (kx 2024-09-04 15:28:09 +0300  51) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  52) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
3f81dafc (kx 2024-09-04 15:28:09 +0300  53) 	@for tarball in $< ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  54) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  55) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  56) 	done
3f81dafc (kx 2024-09-04 15:28:09 +0300  57) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  58) $(patches):
3f81dafc (kx 2024-09-04 15:28:09 +0300  59) 	@echo -e "\n======= Downloading patches for $(pkgname)-$(version) =======\n"
3f81dafc (kx 2024-09-04 15:28:09 +0300  60) 	@for patch in $(patches) ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  61) 	  patch=`basename $$patch` ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  62) 	  wget -N $(url)/$(version)/$$patch ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  63) 	  mv $$patch $(downloads)/ ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  64) 	done
3f81dafc (kx 2024-09-04 15:28:09 +0300  65) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  66) $(psha1s): %.$(psuffix).sha1sum : %.$(psuffix)
3f81dafc (kx 2024-09-04 15:28:09 +0300  67) 	@for tarball in $< ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  68) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  69) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  70) 	done
3f81dafc (kx 2024-09-04 15:28:09 +0300  71) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  72) $(latest): $(sha1s) $(psha1s)
3f81dafc (kx 2024-09-04 15:28:09 +0300  73) 	@echo -e "\n======= Create patched $(latest) tarball =======\n"
3f81dafc (kx 2024-09-04 15:28:09 +0300  74) 	@for tarball in $(pkgname)-$(version).$(suffix) ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  75) 	   ( cd $(downloads) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  76) 	     tar -xzf $$tarball ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  77) 	     ( cd $(pkgname)-$(version) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  78) 	       patches="$(addsuffix .$(psuffix), $(addprefix ../$(pkgname)-$(version)-, $(dates)))" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  79) 	       for patch in `echo $${patches} | sort` ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  80) 	         echo "" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  81) 	         echo "#" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  82) 	         echo "# apply: $$patch" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  83) 	         echo "#" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  84) 	         zcat $$patch | patch -p1 ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  85) 	       done ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  86) 	     ) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  87) 	     mv $(pkgname)-$(version) $(pkgname)-$(version)-$(date) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  88) 	     tar -cJf $(latest) $(pkgname)-$(version)-$(date) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  89) 	     mv $(latest) .. ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  90) 	     rm -rf $(pkgname)-$(version)-$(date) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  91) 	   ) ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  92) 	 done
3f81dafc (kx 2024-09-04 15:28:09 +0300  93) 	@rm -rf $(downloads)
3f81dafc (kx 2024-09-04 15:28:09 +0300  94) 
3f81dafc (kx 2024-09-04 15:28:09 +0300  95) $(lsha1s): %.$(lsuffix).sha1sum : %.$(lsuffix)
3f81dafc (kx 2024-09-04 15:28:09 +0300  96) 	@for tarball in $< ; do \
3f81dafc (kx 2024-09-04 15:28:09 +0300  97) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  98) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
3f81dafc (kx 2024-09-04 15:28:09 +0300  99) 	 done
3f81dafc (kx 2024-09-04 15:28:09 +0300 100) 
3f81dafc (kx 2024-09-04 15:28:09 +0300 101) downloads_clean:
3f81dafc (kx 2024-09-04 15:28:09 +0300 102) 	@rm -rf $(downloads) *.$(lsuffix) *.sha1sum