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.3
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) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 23) dates       = 20211026 20211030 20211106 20211113 20211115 20211120 20211127 20211204
c9b87548 (kx 2023-04-06 16:08:32 +0300 24) dates      += 20211211 20211219 20211225 20220101 20220115 20220122 20220129 20220205
c9b87548 (kx 2023-04-06 16:08:32 +0300 25) dates      += 20220212 20220219 20220226 20220305 20220312 20220319 20220326 20220402
c9b87548 (kx 2023-04-06 16:08:32 +0300 26) dates      += 20220409 20220416 20220423 20220430 20220501 20220507 20220514 20220521
c9b87548 (kx 2023-04-06 16:08:32 +0300 27) dates      += 20220529 20220604 20220612 20220618 20220625 20220703 20220709 20220716
c9b87548 (kx 2023-04-06 16:08:32 +0300 28) dates      += 20220724 20220729 20220806 20220813 20220820 20220827 20220903 20220910
c9b87548 (kx 2023-04-06 16:08:32 +0300 29) dates      += 20220917 20220924 20221001 20221008 20221015 20221023 20221029 20221105
c9b87548 (kx 2023-04-06 16:08:32 +0300 30) dates      += 20221112 20221119 20221126 20221203 20221210 20221217 20221224
c9b87548 (kx 2023-04-06 16:08:32 +0300 31) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 32) psuffix     = patch.gz
c9b87548 (kx 2023-04-06 16:08:32 +0300 33) patches     = $(addprefix $(downloads)/, $(addsuffix .$(psuffix), $(addprefix $(pkgname)-$(version)-, $(dates))))
c9b87548 (kx 2023-04-06 16:08:32 +0300 34) psha1s      = $(addsuffix .sha1sum, $(patches))
c9b87548 (kx 2023-04-06 16:08:32 +0300 35) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 36) date        = $(shell echo $(dates) | tr ' ' '\n' | tail -1)
c9b87548 (kx 2023-04-06 16:08:32 +0300 37) lsuffix     = tar.xz
c9b87548 (kx 2023-04-06 16:08:32 +0300 38) latest      = $(pkgname)-$(version)-$(date).$(lsuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 39) lsha1s      = $(addsuffix .sha1sum, $(latest))
c9b87548 (kx 2023-04-06 16:08:32 +0300 40) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 41) all: $(tarballs) $(patches) $(latest) $(sha1s) $(psha1s) $(lsha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300 42) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 43) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300 44) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 45) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300 46) 	@echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 47) 	@mkdir -p $(CURDIR)/downloads
c9b87548 (kx 2023-04-06 16:08:32 +0300 48) 	@for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 49) 	  tarball=`basename $$tarball` ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 50) 	  wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 51) 	  mv $$tarball $(downloads)/ ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 52) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 53) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 54) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 55) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 56) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 57) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 58) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 59) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 60) $(patches):
c9b87548 (kx 2023-04-06 16:08:32 +0300 61) 	@echo -e "\n======= Downloading patches for $(pkgname)-$(version) =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 62) 	@for patch in $(patches) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 63) 	  patch=`basename $$patch` ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 64) 	  wget -N $(url)/$(version)/$$patch ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 65) 	  mv $$patch $(downloads)/ ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 66) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 67) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 68) $(psha1s): %.$(psuffix).sha1sum : %.$(psuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 69) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 70) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 71) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 72) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 73) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 74) $(latest): $(tarballs) $(patches)
c9b87548 (kx 2023-04-06 16:08:32 +0300 75) 	@echo -e "\n======= Create patched $(latest) tarball =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 76) 	@for tarball in $(pkgname)-$(version).$(suffix) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 77) 	   ( cd $(downloads) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 78) 	     tar -xzf $$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 79) 	     ( cd $(pkgname)-$(version) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 80) 	       patches="$(addsuffix .$(psuffix), $(addprefix ../$(pkgname)-$(version)-, $(dates)))" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 81) 	       for patch in `echo $${patches} | sort` ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 82) 	         zcat $$patch | patch -p1 ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 83) 	       done ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 84) 	     ) ; \
820e9304 (kx 2023-04-16 20:06:28 +0300 85) 	     mv $(pkgname)-$(version) $(pkgname)-$(version)-$(date) ; \
820e9304 (kx 2023-04-16 20:06:28 +0300 86) 	     tar cJf $(latest) $(pkgname)-$(version)-$(date) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 87) 	     mv $(latest) .. ; \
820e9304 (kx 2023-04-16 20:06:28 +0300 88) 	     rm -rf $(pkgname)-$(version)-$(date) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 89) 	   ) ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 90) 	 done
c9b87548 (kx 2023-04-06 16:08:32 +0300 91) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 92) $(lsha1s): %.$(lsuffix).sha1sum : %.$(lsuffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 93) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 94) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 95) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 96) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 97) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 98) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 99) 	@rm -rf $(downloads) *.$(lsuffix) *.sha1sum