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-12-10 12:38:17 +0300 committer: kx <kx@radix.pro> 2023-12-10 12:38:17 +0300 commit: 179e0a9b482dd0b84e362cb5e82cf82fadde3655 parent: cc573ce4b906521ecb0c9a41faa5f9aedc2b354d
Commit Summary:
gtk4-layer-shell-1.0.2
Diffstat:
2 files changed, 49 insertions, 0 deletions
diff --git a/packages/x/Makefile b/packages/x/Makefile
index b7a84fa..a52b45c 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -27,6 +27,7 @@ SUBDIRS := Vulkan               \
            gst-plugins-ugly     \
            gstreamer            \
            gtk-layer-shell      \
+           gtk4-layer-shell     \
            hicolor-icon-theme   \
            idesk                \
            imagemagick          \
diff --git a/packages/x/gtk4-layer-shell/Makefile b/packages/x/gtk4-layer-shell/Makefile
new file mode 100644
index 0000000..606bea1
--- /dev/null
+++ b/packages/x/gtk4-layer-shell/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+#   https://github.com/wmww/gtk4-layer-shell
+#
+# Clone:
+# =====
+#   git clone https://github.com/wmww/gtk4-layer-shell.git
+#
+
+url        = https://github.com/wmww
+
+repo_name  = gtk4-layer-shell
+pkg_name   = gtk4-layer-shell
+suffix     = tar.xz
+
+versions   = 1.0.2
+
+# List of tags to be extracted:
+TAGS       = $(addprefix v, $(versions))
+
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
+	@rm -rf $(repo_name)
+	@git clone $(url)/$(repo_name).git $(repo_name)
+	@touch $@
+
+$(tarballs): $(git_repo)
+	@for version in $(versions) ; do \
+	  tag=v`echo $$version` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+repository_clean: $(sha1s)
+	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+	@rm -rf $(git_repo) $(repo_name)
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)
+	@rm -rf $(git_repo) $(repo_name)