Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  1) #
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  2) # Project Home:
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  3) # ============
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  4) # https://www.sqlite.org
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  5) #
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  6) # Downloads:
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  7) # =========
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  8) # https://www.sqlite.org/download.html
e8ff8c29 (kx 2025-03-02 12:31:29 +0300  9) # https://www.sqlite.org/2025/sqlite-autoconf-3490100.tar.gz
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 10) #
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 11) # tarball, version encoding:
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 12) # =========================
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 13) # tarball: sqlite-product-version.tar.gz
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 14) # version: 3.X.Y -> 3XXYY00; 3.X.Y.Z -> 3XXYYZZ
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 15) #
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 16) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 17) url         = https://www.sqlite.org/2025
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 18) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 19) versions    = 3.49.1.0
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 20) pkgname     = sqlite
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 21) product     = autoconf
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 22) suffix      = tar.gz
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 23) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 24) tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 25) sha1s       = $(addsuffix .sha1sum, $(tarballs))
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 26) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 27) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 28) all: $(tarballs) $(sha1s)
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 29) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 30) .PHONY: downloads_clean
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 31) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 32) $(tarballs):
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 33) 	@echo -e "\n======= Downloading source tarballs =======\n"
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 34) 	@for version in $(versions) ; do \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 35) 	  m=`echo $$version | cut -f1 -d'.'` ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 36) 	  x=`echo $$version | cut -f2 -d'.'` ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 37) 	  y=`echo $$version | cut -f3 -d'.'` ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 38) 	  z=`echo $$version | cut -f4 -d'.'` ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 39) 	  vcode=`printf "%d%0.2d%0.2d%0.2d" $$m $$x $$y $$z` ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 40) 	  wget -N $(url)/$(pkgname)-$(product)-$$vcode.$(suffix) ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 41) 	  tar xzf $(pkgname)-$(product)-$$vcode.$(suffix) ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 42) 	  mv $(pkgname)-$(product)-$$vcode $(pkgname)-$$version ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 43) 	  tar czf $(pkgname)-$$version.$(suffix) $(pkgname)-$$version ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 44) 	  rm -rf $(pkgname)-$$version $(pkgname)-$(product)-$$vcode.$(suffix) ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 45) 	done
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 46) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 47) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 48) 	@for tarball in $< ; do \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 49) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 50) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 51) 	done
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 52) 
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 53) downloads_clean:
e8ff8c29 (kx 2025-03-02 12:31:29 +0300 54) 	@rm -rf $(tarballs) $(sha1s)