3dd19145 (kx 2023-04-09 03:24:10 +0300 1) #
3dd19145 (kx 2023-04-09 03:24:10 +0300 2) # Downloads:
3dd19145 (kx 2023-04-09 03:24:10 +0300 3) # =========
3dd19145 (kx 2023-04-09 03:24:10 +0300 4) # http://archive.debian.org/debian-archive/debian/pool/main/t/termcap-compat/
3dd19145 (kx 2023-04-09 03:24:10 +0300 5) # http://ftp.de.debian.org/debian-archive/debian/pool/main/t/termcap-compat/
3dd19145 (kx 2023-04-09 03:24:10 +0300 6) # ftp://ftp.de.debian.org/debian-archive/debian/pool/main/t/termcap-compat/
3dd19145 (kx 2023-04-09 03:24:10 +0300 7)
3dd19145 (kx 2023-04-09 03:24:10 +0300 8) url = ftp://ftp.de.debian.org/debian-archive/debian/pool/main/t/termcap-compat
3dd19145 (kx 2023-04-09 03:24:10 +0300 9)
3dd19145 (kx 2023-04-09 03:24:10 +0300 10) versions = 1.2.3
3dd19145 (kx 2023-04-09 03:24:10 +0300 11)
3dd19145 (kx 2023-04-09 03:24:10 +0300 12) pkgname = termcap-compat
3dd19145 (kx 2023-04-09 03:24:10 +0300 13) suffix = tar.gz
3dd19145 (kx 2023-04-09 03:24:10 +0300 14)
3dd19145 (kx 2023-04-09 03:24:10 +0300 15) tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)_, $(versions)))
3dd19145 (kx 2023-04-09 03:24:10 +0300 16) descriptions = $(addsuffix .dsc, $(addprefix $(pkgname)_, $(versions)))
3dd19145 (kx 2023-04-09 03:24:10 +0300 17) sha1s = $(addsuffix .sha1sum, $(tarballs))
3dd19145 (kx 2023-04-09 03:24:10 +0300 18)
3dd19145 (kx 2023-04-09 03:24:10 +0300 19)
3dd19145 (kx 2023-04-09 03:24:10 +0300 20) all: $(tarballs) $(descriptions) $(sha1s)
3dd19145 (kx 2023-04-09 03:24:10 +0300 21)
3dd19145 (kx 2023-04-09 03:24:10 +0300 22) .PHONY: downloads_clean
3dd19145 (kx 2023-04-09 03:24:10 +0300 23)
3dd19145 (kx 2023-04-09 03:24:10 +0300 24) $(tarballs):
3dd19145 (kx 2023-04-09 03:24:10 +0300 25) @echo -e "\n======= Downloading source tarballs =======\n"
3dd19145 (kx 2023-04-09 03:24:10 +0300 26) @for tarball in $(tarballs) ; do \
3dd19145 (kx 2023-04-09 03:24:10 +0300 27) wget -N $(url)/$$tarball ; \
3dd19145 (kx 2023-04-09 03:24:10 +0300 28) done
3dd19145 (kx 2023-04-09 03:24:10 +0300 29)
3dd19145 (kx 2023-04-09 03:24:10 +0300 30) $(descriptions):
3dd19145 (kx 2023-04-09 03:24:10 +0300 31) @echo -e "\n======= Downloading source descriptions =======\n"
3dd19145 (kx 2023-04-09 03:24:10 +0300 32) @for description in $(descriptions) ; do \
3dd19145 (kx 2023-04-09 03:24:10 +0300 33) wget -N $(url)/$$description ; \
3dd19145 (kx 2023-04-09 03:24:10 +0300 34) done
3dd19145 (kx 2023-04-09 03:24:10 +0300 35)
3dd19145 (kx 2023-04-09 03:24:10 +0300 36) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
3dd19145 (kx 2023-04-09 03:24:10 +0300 37) @for tarball in $< ; do \
3dd19145 (kx 2023-04-09 03:24:10 +0300 38) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
3dd19145 (kx 2023-04-09 03:24:10 +0300 39) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
3dd19145 (kx 2023-04-09 03:24:10 +0300 40) done
3dd19145 (kx 2023-04-09 03:24:10 +0300 41)
3dd19145 (kx 2023-04-09 03:24:10 +0300 42) downloads_clean:
3dd19145 (kx 2023-04-09 03:24:10 +0300 43) @rm -rf $(tarballs) $(descriptions) $(sha1s)