From d59de0787dcad9b3dff3ebfc93137be0acec3e43 Mon Sep 17 00:00:00 2001 From: kx Date: Sat, 20 Jan 2024 11:34:48 +0300 Subject: mypaint-brushes-1.3.1 --- packages/x/Makefile | 1 + packages/x/mypaint-brushes/Makefile | 44 +++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 packages/x/mypaint-brushes/Makefile 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) -- cgit v1.2.3