Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

343 Commits   0 Branches   0 Tags
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:
GNU packages
Diffstat:
1 file changed, 37 insertions, 0 deletions
diff --git a/GNU/ncurses/6.0/Makefile b/GNU/ncurses/6.0/Makefile
new file mode 100644
index 0000000..1ce3712
--- /dev/null
+++ b/GNU/ncurses/6.0/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     = 6.0
+pkgname     = ncurses
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+dates       = 20170930
+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)