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-05-25 10:35:50 +0300 committer: kx <kx@radix.pro> 2023-05-25 10:35:50 +0300 commit: 44cf90d3fd6f2d70eccf1a57a7cf4fe8dcbfb732 parent: e20de451b504cde1c5899a889114ecfeecfa9ee8
Commit Summary:
geoclue; unifdef
Diffstat:
4 files changed, 82 insertions, 1 deletion
diff --git a/packages/d/Makefile b/packages/d/Makefile
index 13c2def..ba26143 100644
--- a/packages/d/Makefile
+++ b/packages/d/Makefile
@@ -28,7 +28,8 @@ SUBDIRS := check          \
            re2c           \
            ruby           \
            subversion     \
-           swig
+           swig           \
+           unifdef
 
 
 all-recursive downloads_clean-recursive:
diff --git a/packages/d/unifdef/Makefile b/packages/d/unifdef/Makefile
new file mode 100644
index 0000000..7896953
--- /dev/null
+++ b/packages/d/unifdef/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://dotat.at/prog/unifdef
+#
+# Downloads:
+# =========
+# https://dotat.at/prog/unifdef
+#
+
+url         = https://dotat.at/prog/unifdef
+
+versions    = 2.12
+
+pkgname     = unifdef
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/$(pkgname)-$$version.$(suffix) ;  \
+	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)
diff --git a/packages/x/Makefile b/packages/x/Makefile
index b378e28..36485e3 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -15,6 +15,7 @@ SUBDIRS := Vulkan               \
            fontconfig           \
            fonts-tlwg           \
            freeglut             \
+           geoclue              \
            gimp                 \
            glew                 \
            glu                  \
diff --git a/packages/x/geoclue/Makefile b/packages/x/geoclue/Makefile
new file mode 100644
index 0000000..a688fca
--- /dev/null
+++ b/packages/x/geoclue/Makefile
@@ -0,0 +1,63 @@
+#
+# Project Home:
+# ============
+#   https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home
+#
+# GitLab:
+# ======
+#   https://gitlab.freedesktop.org/geoclue/geoclue
+#
+# Clone:
+# =====
+#   git clone https://gitlab.freedesktop.org/geoclue/geoclue.git
+#
+
+url        = https://gitlab.freedesktop.org/geoclue
+
+repo_name  = geoclue
+pkg_name   = geoclue
+suffix     = tar.xz
+
+versions   = 2.7.0
+
+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=`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)