author: kx <kx@radix.pro> 2024-01-20 11:34:48 +0300
committer: kx <kx@radix.pro> 2024-01-20 11:34:48 +0300
commit: d59de0787dcad9b3dff3ebfc93137be0acec3e43
parent: ce3ec4096f533670ce7071423fcb121ca667bcaa
Commit Summary:
Diffstat:
2 files changed, 35 insertions, 0 deletions
diff --git a/packages/x/Makefile b/packages/x/Makefile
index d463f3e..eb05fae 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -74,6 +74,7 @@ SUBDIRS := Vulkan \
mozilla-thunderbird \
mozjs \
mtdev \
+ mypaint-brushes \
nitrogen \
obconf \
openbox \
diff --git a/packages/x/mypaint-brushes/Makefile b/packages/x/mypaint-brushes/Makefile
new file mode 100644
index 0000000..ae8831b
--- /dev/null
+++ b/packages/x/mypaint-brushes/Makefile
@@ -0,0 +1,44 @@
+#
+# Project Home:
+# ============
+# https://mypaint.app/
+#
+# Clone:
+# =====
+# git clone https://github.com/mypaint/mypaint-brushes.git
+#
+# Dovnload:
+# ========
+# https://github.com/mypaint/mypaint-brushes/releases
+#
+
+url = https://github.com/mypaint/mypaint-brushes/releases
+
+versions = 1.3.1
+
+pkg_name = mypaint-brushes
+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)