author: kx <kx@radix.pro> 2023-04-06 16:08:32 +0300
committer: kx <kx@radix.pro> 2023-04-06 16:08:32 +0300
commit: c9b87548f19c4323592abff0a86bc1dac45658f0
parent: 8d07317ed20e7544501edfcc9894d5002fd1771d
Commit Summary:
Diffstat:
1 file changed, 37 insertions, 0 deletions
diff --git a/GNU/ncurses/5.9/Makefile b/GNU/ncurses/5.9/Makefile
new file mode 100644
index 0000000..4d0f573
--- /dev/null
+++ b/GNU/ncurses/5.9/Makefile
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# https://invisible-island.net/ncurses/announce.html
+#
+# Downloads:
+# =========
+# ftp://invisible-island.net/ncurses/
+# ftp://ftp.gnu.org/pub/gnu/ncurses/
+#
+
+url = https://invisible-island.net/archives/ncurses
+
+version = 5.9
+pkgname = ncurses
+suffix = tar.gz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+dates = 20130504 20141206
+patches = $(addsuffix .sh.gz, $(addprefix patch-$(version)-, $(dates)))
+
+
+all: $(tarballs) $(sha1s) $(patches)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======\n"
+ @for tarball in $(tarballs) ; do \
+ wget -N $(url)/$$tarball ; \
+ done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+$(patches):
+ @echo -e "\n======= Downloading patches for $(pkgname)-$(version) =======\n"
+ @for patch in $(patches) ; do \
+ wget -N $(url)/$(version)/$$patch ; \
+ done
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s) $(patches)