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 21:49:09 +0300 committer: kx <kx@radix.pro> 2023-04-08 21:49:09 +0300 commit: 8da99f0df767bd0f30cec5080adccec66eecaab4 parent: bc12d811bfdbcc8ba92fd32a06eabf0644eac6b9
Commit Summary:
media tarballs
Diffstat:
1 file changed, 30 insertions, 0 deletions
diff --git a/packages/m/schroedinger/Makefile b/packages/m/schroedinger/Makefile
new file mode 100644
index 0000000..e8a21e6
--- /dev/null
+++ b/packages/m/schroedinger/Makefile
@@ -0,0 +1,40 @@
+#
+# Project Home:
+# ============
+# https://launchpad.net/schroedinger
+#
+# Downloads:
+# =========
+# https://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz
+#
+
+url         = https://launchpad.net
+
+versions    = 1.0.11
+
+pkgname     = schroedinger
+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]*\)\([\.].*\)/\3/'` ; \
+	  wget -N $(url)/$(pkgname)/trunk/$$version/+download/$$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)