293cb571 (kx 2023-04-07 10:30:20 +0300 1) #
293cb571 (kx 2023-04-07 10:30:20 +0300 2) # Project Home:
293cb571 (kx 2023-04-07 10:30:20 +0300 3) # ============
293cb571 (kx 2023-04-07 10:30:20 +0300 4) # https://pkgconfig.freedesktop.org
293cb571 (kx 2023-04-07 10:30:20 +0300 5) #
293cb571 (kx 2023-04-07 10:30:20 +0300 6) # Downloads:
293cb571 (kx 2023-04-07 10:30:20 +0300 7) # =========
293cb571 (kx 2023-04-07 10:30:20 +0300 8) # https://pkgconfig.freedesktop.org/releases
293cb571 (kx 2023-04-07 10:30:20 +0300 9) #
293cb571 (kx 2023-04-07 10:30:20 +0300 10)
293cb571 (kx 2023-04-07 10:30:20 +0300 11) url = https://pkgconfig.freedesktop.org/releases
293cb571 (kx 2023-04-07 10:30:20 +0300 12)
293cb571 (kx 2023-04-07 10:30:20 +0300 13) versions = 0.25 0.26 0.27 0.28 0.29 0.29.2
293cb571 (kx 2023-04-07 10:30:20 +0300 14)
293cb571 (kx 2023-04-07 10:30:20 +0300 15) pkg_name = pkg-config
293cb571 (kx 2023-04-07 10:30:20 +0300 16) suffix = tar.gz
293cb571 (kx 2023-04-07 10:30:20 +0300 17)
293cb571 (kx 2023-04-07 10:30:20 +0300 18) tarballs = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))
293cb571 (kx 2023-04-07 10:30:20 +0300 19) sha1s = $(addsuffix .sha1sum, $(tarballs))
293cb571 (kx 2023-04-07 10:30:20 +0300 20)
293cb571 (kx 2023-04-07 10:30:20 +0300 21)
293cb571 (kx 2023-04-07 10:30:20 +0300 22) all: $(tarballs) $(sha1s)
293cb571 (kx 2023-04-07 10:30:20 +0300 23)
293cb571 (kx 2023-04-07 10:30:20 +0300 24) .PHONY: downloads_clean
293cb571 (kx 2023-04-07 10:30:20 +0300 25)
293cb571 (kx 2023-04-07 10:30:20 +0300 26) $(tarballs):
293cb571 (kx 2023-04-07 10:30:20 +0300 27) @echo -e "\n======= Downloading source tarballs =======\n"
293cb571 (kx 2023-04-07 10:30:20 +0300 28) @for tarball in $(tarballs) ; do \
293cb571 (kx 2023-04-07 10:30:20 +0300 29) wget -N $(url)/$$tarball ; \
293cb571 (kx 2023-04-07 10:30:20 +0300 30) done
293cb571 (kx 2023-04-07 10:30:20 +0300 31)
293cb571 (kx 2023-04-07 10:30:20 +0300 32) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
293cb571 (kx 2023-04-07 10:30:20 +0300 33) @for tarball in $< ; do \
293cb571 (kx 2023-04-07 10:30:20 +0300 34) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
293cb571 (kx 2023-04-07 10:30:20 +0300 35) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
293cb571 (kx 2023-04-07 10:30:20 +0300 36) done
293cb571 (kx 2023-04-07 10:30:20 +0300 37)
293cb571 (kx 2023-04-07 10:30:20 +0300 38) downloads_clean:
293cb571 (kx 2023-04-07 10:30:20 +0300 39) @rm -rf $(tarballs) $(sha1s)