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-09 23:18:24 +0300 committer: kx <kx@radix.pro> 2023-04-09 23:18:24 +0300 commit: 8b7e76c7ad2445c0920e9d056728f7b6baaa0c43 parent: 3dd1914515dc5c714451bc4148f0abb51672ed06
Commit Summary:
network packages
Diffstat:
1 file changed, 46 insertions, 0 deletions
diff --git a/packages/n/curl/Makefile b/packages/n/curl/Makefile
new file mode 100644
index 0000000..25b2b76
--- /dev/null
+++ b/packages/n/curl/Makefile
@@ -0,0 +1,57 @@
+#
+# Project Home:
+# ============
+# https://curl.se
+#
+# Downloads:
+# =========
+# https://curl.se/download.html
+#
+# cacert download:
+# ===============
+# http://curl.haxx.se/docs/caextract.html
+#
+
+url         = https://curl.se/download
+cacert_url  = https://curl.se/ca
+
+versions    = 7.66.0 7.75.0 7.86.0
+versions   += 8.0.1
+
+pkgname     = curl
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+signatures  = $(addsuffix .asc, $(tarballs))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+cacert      = cacert.pem.bz2
+
+all: $(tarballs) $(signatures) $(sha1s) $(cacert)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for tarball in $(tarballs) ; do \
+	  wget -N $(url)/$$tarball ; \
+	done
+
+$(signatures): %.$(suffix).asc : %.$(suffix)
+	@for signature in $@ ; do \
+	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
+	  wget -N $(url)/$$signature ; \
+	  touch $$signature ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+$(cacert):
+	@echo -e "\n======= Downloading $(cacert) tarball =======\n"
+	@wget -N $(cacert_url)/cacert.pem ; xz -9 cacert.pem ; rm -f cacert.pem
+
+downloads_clean:
+	@rm -rf $(tarballs) $(signatures) $(sha1s) $(cacert)