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> 2024-01-20 11:31:11 +0300 committer: kx <kx@radix.pro> 2024-01-20 11:31:11 +0300 commit: ce3ec4096f533670ce7071423fcb121ca667bcaa parent: be13aca38d19c9b499ac5541ca0bf82c033ccaab
Commit Summary:
libmypaint-1.6.1
Diffstat:
2 files changed, 35 insertions, 0 deletions
diff --git a/packages/x/Makefile b/packages/x/Makefile
index 5f46802..d463f3e 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -50,6 +50,7 @@ SUBDIRS := Vulkan               \
            libfakekey           \
            libglvnd             \
            libinput             \
+           libmypaint           \
            libportal            \
            libraw               \
            libreoffice          \
diff --git a/packages/x/libmypaint/Makefile b/packages/x/libmypaint/Makefile
new file mode 100644
index 0000000..d84deb9
--- /dev/null
+++ b/packages/x/libmypaint/Makefile
@@ -0,0 +1,44 @@
+#
+# Project Home:
+# ============
+#   https://mypaint.app/
+#
+# Clone:
+# =====
+#   git clone https://github.com/mypaint/libmypaint.git
+#
+# Dovnload:
+# ========
+#   https://github.com/mypaint/libmypaint/releases
+#
+
+url          = https://github.com/mypaint/libmypaint/releases
+
+versions     = 1.6.1
+
+pkg_name     = libmypaint
+suffix       = tar.xz
+
+tarballs     = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(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)/download/v$$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)