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://www.gnu.org/software/gzip/
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) # https://ftp.gnu.org/pub/gnu/gzip/
c9b87548 (kx 2023-04-06 16:08:32 +0300 9) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 10)
c9b87548 (kx 2023-04-06 16:08:32 +0300 11) url = https://ftp.gnu.org/pub/gnu/gzip
c9b87548 (kx 2023-04-06 16:08:32 +0300 12)
f4f58fef (kx 2024-02-24 13:56:53 +0300 13) versions = 1.5 1.6 1.10 1.11 1.12 1.13
c9b87548 (kx 2023-04-06 16:08:32 +0300 14)
c9b87548 (kx 2023-04-06 16:08:32 +0300 15) pkgname = gzip
c9b87548 (kx 2023-04-06 16:08:32 +0300 16) suffix = tar.xz
c9b87548 (kx 2023-04-06 16:08:32 +0300 17)
c9b87548 (kx 2023-04-06 16:08:32 +0300 18) tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
c9b87548 (kx 2023-04-06 16:08:32 +0300 19) sha1s = $(addsuffix .sha1sum, $(tarballs))
c9b87548 (kx 2023-04-06 16:08:32 +0300 20)
c9b87548 (kx 2023-04-06 16:08:32 +0300 21)
c9b87548 (kx 2023-04-06 16:08:32 +0300 22) all: $(tarballs) $(sha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300 23)
c9b87548 (kx 2023-04-06 16:08:32 +0300 24) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300 25)
c9b87548 (kx 2023-04-06 16:08:32 +0300 26) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300 27) @echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 28) @for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 29) wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 30) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 31)
c9b87548 (kx 2023-04-06 16:08:32 +0300 32) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 33) @for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 34) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 35) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 36) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 37)
c9b87548 (kx 2023-04-06 16:08:32 +0300 38) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 39) @rm -rf $(tarballs) $(sha1s)