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://invisible-island.net/ncurses/announce.html
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) # ftp://invisible-island.net/ncurses/
c9b87548 (kx 2023-04-06 16:08:32 +0300 9) # ftp://ftp.gnu.org/pub/gnu/ncurses/
c9b87548 (kx 2023-04-06 16:08:32 +0300 10) #
c9b87548 (kx 2023-04-06 16:08:32 +0300 11)
c9b87548 (kx 2023-04-06 16:08:32 +0300 12) url = https://invisible-island.net/archives/ncurses
c9b87548 (kx 2023-04-06 16:08:32 +0300 13)
c9b87548 (kx 2023-04-06 16:08:32 +0300 14) version = 6.2
c9b87548 (kx 2023-04-06 16:08:32 +0300 15) pkgname = ncurses
c9b87548 (kx 2023-04-06 16:08:32 +0300 16) suffix = tar.gz
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)-, $(version)))
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) dates = 20210619
c9b87548 (kx 2023-04-06 16:08:32 +0300 22) patches = $(addsuffix .sh.gz, $(addprefix patch-$(version)-, $(dates)))
c9b87548 (kx 2023-04-06 16:08:32 +0300 23)
c9b87548 (kx 2023-04-06 16:08:32 +0300 24)
c9b87548 (kx 2023-04-06 16:08:32 +0300 25) all: $(tarballs) $(sha1s) $(patches)
c9b87548 (kx 2023-04-06 16:08:32 +0300 26)
c9b87548 (kx 2023-04-06 16:08:32 +0300 27) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300 28)
c9b87548 (kx 2023-04-06 16:08:32 +0300 29) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300 30) @echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 31) @for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 32) wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 33) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 34)
c9b87548 (kx 2023-04-06 16:08:32 +0300 35) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 36) @for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 37) echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 38) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 39) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 40)
c9b87548 (kx 2023-04-06 16:08:32 +0300 41) $(patches):
c9b87548 (kx 2023-04-06 16:08:32 +0300 42) @echo -e "\n======= Downloading patches for $(pkgname)-$(version) =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 43) @for patch in $(patches) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 44) wget -N $(url)/$(version)/$$patch ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 45) done
c9b87548 (kx 2023-04-06 16:08:32 +0300 46)
c9b87548 (kx 2023-04-06 16:08:32 +0300 47) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 48) @rm -rf $(tarballs) $(sha1s) $(patches)