summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2024-01-20 11:31:11 +0300
committerkx <kx@radix.pro>2024-01-20 11:31:11 +0300
commitce3ec4096f533670ce7071423fcb121ca667bcaa (patch)
treefaba6dcb84d892baf52857d10f96ebd0a46dc58d
parentbe13aca38d19c9b499ac5541ca0bf82c033ccaab (diff)
downloadsources-ce3ec4096f533670ce7071423fcb121ca667bcaa.tar.xz
libmypaint-1.6.1
-rw-r--r--packages/x/Makefile1
-rw-r--r--packages/x/libmypaint/Makefile44
2 files changed, 45 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)