Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-12-26 15:05:32 +0300 committer: kx <kx@radix.pro> 2023-12-26 15:05:32 +0300 commit: 2ad747fca479e740c7a42ffe22aa1f07d14adb68 parent: a9a3cae6ffe744ecef24ea59ae3bceaef207d9a0
Commit Summary:
Avahi clone bu default
Diffstat:
1 file changed, 34 insertions, 0 deletions
diff --git a/packages/n/avahi/Makefile.download-via-http b/packages/n/avahi/Makefile.download-via-http
new file mode 100644
index 0000000..592da7a
--- /dev/null
+++ b/packages/n/avahi/Makefile.download-via-http
@@ -0,0 +1,44 @@
+#
+# Project Home:
+# ============
+#   https://www.avahi.org
+#
+# Downloads:
+# =========
+#   https://avahi.org/download
+#
+#
+# GitHub:
+# ======
+#   https://github.com/avahi/avahi
+#
+
+url         = https://avahi.org/download
+
+versions    = 0.6.31 0.6.32 0.7 0.8
+
+pkgname     = avahi
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/$(pkgname)-$$version.$(suffix) ;  \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)