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-22 11:20:52 +0300 committer: kx <kx@radix.pro> 2023-05-22 11:20:52 +0300 commit: 2c8f8af33247699237b0dc98eb285224f236b166 parent: 0bf9afb59e0a2b33da15bc23a398e313f067dd58
Commit Summary:
woff2-1.0.2
Diffstat:
2 files changed, 47 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile
index 187fe0c..bf8c63a 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -131,6 +131,7 @@ SUBDIRS := aalib               \
            usbids              \
            utf8proc            \
            v4l-utils           \
+           woff2               \
            zeromq              \
            zlib                \
            zstd
diff --git a/packages/l/woff2/Makefile b/packages/l/woff2/Makefile
new file mode 100644
index 0000000..098db22
--- /dev/null
+++ b/packages/l/woff2/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+#   https://github.com/google/woff2
+#
+# Clone:
+# =====
+#   https://github.com/google/woff2.git
+#
+
+url        = https://github.com/google
+
+repo_name  = woff2
+pkg_name   = woff2
+suffix     = tar.xz
+
+versions   = 1.0.2
+
+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)