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-07 10:08:13 +0300 committer: kx <kx@radix.pro> 2023-04-07 10:08:13 +0300 commit: 1d161c7be1ce8365f04bb253c5af1bf842d2e0eb parent: 56d70fdfbe2c742180a1a6a1976826a66bf8b96d
Commit Summary:
development packages
Diffstat:
1 file changed, 30 insertions, 0 deletions
diff --git a/packages/d/intltool/Makefile b/packages/d/intltool/Makefile
new file mode 100644
index 0000000..8932aed
--- /dev/null
+++ b/packages/d/intltool/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://launchpad.net/intltool
+#
+# Downloads:
+# =========
+# https://launchpad.net/intltool/trunk/${VERSION}/+download/intltool-${VERSION}.tar.gz
+#
+
+url         = https://launchpad.net/intltool/trunk
+
+versions    = 0.51.0
+pkgname     = intltool
+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-Z-]*\)\([0-9][.][0-9]*[.][0-9]*\)\([\.].*\)/\2/'` ; \
+	  wget -N $(url)/$$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)