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, 34 insertions, 0 deletions
diff --git a/packages/n/bluez/Makefile b/packages/n/bluez/Makefile
new file mode 100644
index 0000000..8308efc
--- /dev/null
+++ b/packages/n/bluez/Makefile
@@ -0,0 +1,47 @@
+#
+# Project Home:
+# ============
+# http://www.bluez.org
+#
+# Downloads:
+# =========
+# ftp://ftp.kernel.org/pub/linux/bluetooth
+# https://mirrors.edge.kernel.org/pub/linux/bluetooth
+#
+
+
+url       = https://www.kernel.org/pub/linux/bluetooth
+
+versions  = 4.99 5.24 5.37 5.42 5.52 5.56 5.62 5.66
+
+pkg_name  = bluez
+arch_type = tar.xz
+suffixes  = $(arch_type) tar.sign
+
+files     = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions))))
+
+tarballs  = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions)))
+sha1s     = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(files) $(sha1s)
+
+
+.PHONY: downloads_clean
+
+$(files):
+	@echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n"
+	@for version in $(versions) ; do \
+	  for suffix in $(suffixes) ; do \
+	    wget -N $(url)/$(pkg_name)-$$version.$$suffix ;  \
+	  done ; \
+	done
+
+$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -f $(files) $(sha1s)