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-08 11:40:58 +0300 committer: kx <kx@radix.pro> 2023-04-08 11:40:58 +0300 commit: bc12d811bfdbcc8ba92fd32a06eabf0644eac6b9 parent: d8b69aa468bb1efa108e032ccde0b85fa63a5c64
Commit Summary:
For Java
Diffstat:
1 file changed, 26 insertions, 0 deletions
diff --git a/packages/j/antlr-runtime/Makefile b/packages/j/antlr-runtime/Makefile
new file mode 100644
index 0000000..0993e16
--- /dev/null
+++ b/packages/j/antlr-runtime/Makefile
@@ -0,0 +1,36 @@
+#
+# Downloads:
+# =========
+# https://oss.sonatype.org/content/repositories/releases/org/antlr/antlr-runtime
+#
+
+url         = https://oss.sonatype.org/content/repositories/releases/org/antlr/antlr-runtime
+
+versions    = 3.4 3.5.2 3.5.3
+
+pkgname     = antlr-runtime
+suffix      = jar
+
+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-Z-]*\)\([0-9]*[.0-9]*\)\([\.-].*\)/\2/'` ; \
+	  wget -N $(url)/$$version/$$tarball ; \
+	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)