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-18 10:20:13 +0300 committer: kx <kx@radix.pro> 2024-01-18 10:20:13 +0300 commit: 6c10816302f9a25e8572cf9408e8241bda08e086 parent: 5df60b41c271283cfa7b27442c4dae89ebbc5ec3
Commit Summary:
GIMP 2.99.16
Diffstat:
1 file changed, 42 insertions, 0 deletions
diff --git a/packages/x/gimp3/Makefile b/packages/x/gimp3/Makefile
new file mode 100644
index 0000000..b8a20cb
--- /dev/null
+++ b/packages/x/gimp3/Makefile
@@ -0,0 +1,56 @@
+#
+# Project Home:
+# ============
+#   https://www.gimp.org
+#
+# GitLab:
+# ======
+#   https://gitlab.gnome.org/GNOME/gimp
+#
+# Clone:
+# =====
+#   git clone https://gitlab.gnome.org/GNOME/gimp.git
+#
+# Downloads:
+# =========
+#   https://download.gimp.org/pub/gimp
+#
+
+
+url       = https://download.gimp.org/pub
+
+versions  = 2.99.16
+
+pkg_name  = gimp
+arch_type = tar.xz
+
+suffixes  = $(arch_type)
+
+files     = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions))))
+
+tarballs  = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions)))
+sha1s     = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(files) $(sha1s)
+
+
+.PHONY: downloads_clean
+
+$(files):
+	@echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n"
+	@for version in $(versions) ; do \
+	  major_minor=`echo $$version | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'` ; \
+	  for suffix in $(suffixes) ; do \
+	    wget -N $(url)/$(pkg_name)/v$$major_minor/$(pkg_name)-$$version.$$suffix ;  \
+	  done ; \
+	done
+
+$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -f $(files) $(sha1s)