Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  1) #
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  2) # Project Home:
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  3) # ============
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  4) #   https://github.com/containers/bubblewrap
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  5) #
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  6) # GitHub:
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  7) # ======
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  8) #   https://github.com/containers/bubblewrap
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300  9) #
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 10) # Clone:
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 11) # =====
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 12) #   git clone https://github.com/containers/bubblewrap.git
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 13) #
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 14) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 15) url        = https://github.com/containers
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 16) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 17) repo_name  = bubblewrap
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 18) pkg_name   = bubblewrap
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 19) suffix     = tar.xz
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 20) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 21) versions   = 0.8.0
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 22) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 23) git_repo   = .git_clone
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 24) tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 25) sha1s      = $(addsuffix .sha1sum, $(tarballs))
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 26) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 27) TARGETS = repository_clean
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 28) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 29) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 30) all: $(TARGETS)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 31) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 32) .PHONY: downloads_clean repository_clean
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 33) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 34) $(git_repo):
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 35) 	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 36) 	@rm -rf $(repo_name)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 37) 	@git clone $(url)/$(repo_name).git $(repo_name)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 38) 	@touch $@
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 39) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 40) $(tarballs): $(git_repo)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 41) 	@for version in $(versions) ; do \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 42) 	  tag=v`echo $$version` ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 43) 	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 44) 	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 45) 	    ( cd $(repo_name) && \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 46) 	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 47) 	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 48) 	  fi ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 49) 	done
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 50) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 51) $(sha1s): %.tar.xz.sha1sum : %.tar.xz
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 52) 	@for tarball in $< ; do \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 53) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 54) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 55) 	done
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 56) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 57) repository_clean: $(sha1s)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 58) 	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 59) 	@rm -rf $(git_repo) $(repo_name)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 60) 
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 61) downloads_clean:
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 62) 	@rm -rf $(tarballs) $(sha1s)
78c64590 packages/x/bubblewrap/Makefile (kx 2023-05-24 14:20:06 +0300 63) 	@rm -rf $(git_repo) $(repo_name)