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> 2023-06-01 01:36:31 +0300 committer: kx <kx@radix.pro> 2023-06-01 01:36:31 +0300 commit: 6232200eafbbb13973c858a2318550d4887aea71 parent: cfcbc026bd6776ffcd0955bb84432afc7767aa2f
Commit Summary:
gnome-text-editor-44.0
Diffstat:
2 files changed, 43 insertions, 0 deletions
diff --git a/GNOME/apps/Makefile b/GNOME/apps/Makefile
index 56d9ad5..e706dd4 100644
--- a/GNOME/apps/Makefile
+++ b/GNOME/apps/Makefile
@@ -42,6 +42,7 @@ SUBDIRS := accerciser                 \
            gnome-sound-recorder       \
            gnome-sudoku               \
            gnome-tetravex             \
+           gnome-text-editor          \
            gnome-tweak-tool           \
            gnome-weather              \
            hitori                     \
diff --git a/GNOME/apps/gnome-text-editor/Makefile b/GNOME/apps/gnome-text-editor/Makefile
new file mode 100644
index 0000000..c17811b
--- /dev/null
+++ b/GNOME/apps/gnome-text-editor/Makefile
@@ -0,0 +1,55 @@
+#
+# Project Home:
+# ============
+# https://www.gnome.org
+#
+# Repository browse: https://git.gnome.org/browse/gnome-photos
+#
+# Downloads:
+# =========
+# ftp://ftp.gnome.org/pub/GNOME/sources
+# https://download.gnome.org/sources
+#
+
+
+url       = https://download.gnome.org/sources
+
+versions  = 44.0
+
+pkg_name  = gnome-text-editor
+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=`echo $$version | cut -f1 -d'.'` ; \
+	  if [ "$$major" -gt "3" ] ; then \
+	    major_minor=`echo $$version | sed 's/\([0-9]*\)\([\.].*\)/\1/'` ; \
+	  else \
+	    major_minor=`echo $$version | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'` ; \
+	  fi ; \
+	  for suffix in $(suffixes) ; do \
+	    wget -N $(url)/$(pkg_name)/$$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)