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 03:24:10 +0300 committer: kx <kx@radix.pro> 2023-04-09 03:24:10 +0300 commit: 3dd1914515dc5c714451bc4148f0abb51672ed06 parent: c0eee091446a07e56576b7d855dd09f0da9968c8
Commit Summary:
libraries
Diffstat:
1 file changed, 38 insertions, 0 deletions
diff --git a/packages/l/judy/Makefile b/packages/l/judy/Makefile
new file mode 100644
index 0000000..8d97ecc
--- /dev/null
+++ b/packages/l/judy/Makefile
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# https://judy.sourceforge.net
+# https://judy.sourceforge.net/doc/Judy_3x.htm
+#
+# Downloads:
+# =========
+# https://downloads.sourceforge.net/judy
+#
+
+url         = https://downloads.sourceforge.net/judy
+
+versions    = 1.0.5
+
+pkgname     = judy
+tgzname     = Judy
+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 tarball in $(tarballs) ; do \
+	  version=`echo $$tarball | sed 's/\([a-zA-Z0-9-]*\)\([0-9][.0-9][.0-9]*\)\(\..*\)/\2/'` ; \
+	  wget -N $(url)/$(tgzname)-$$version.$(suffix) ; \
+	  tar xzf $(tgzname)-$$version.$(suffix) ; \
+	  ( cd $(pkgname)-$$version ; \
+	    rm -rf autom4te.cache ; \
+	  ) ; \
+	  tar czf $(pkgname)-$$version.$(suffix) $(pkgname)-$$version ; \
+	  rm -rf $(pkgname)-$$version $(tgzname)-$$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)