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-04-07 15:29:50 +0300 committer: kx <kx@radix.pro> 2023-04-07 15:29:50 +0300 commit: d8b69aa468bb1efa108e032ccde0b85fa63a5c64 parent: 63c35171c66d6e0f9add54c01bf81c127b0d9384
Commit Summary:
X packages
Diffstat:
2 files changed, 46 insertions, 0 deletions
diff --git a/packages/x/fonts-tlwg/Makefile b/packages/x/fonts-tlwg/Makefile
new file mode 100644
index 0000000..c40f7ff
--- /dev/null
+++ b/packages/x/fonts-tlwg/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := ttf-tlwg
+
+
+all-recursive downloads_clean-recursive:
+	@set fnord $(MAKEFLAGS); amf=$$2; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  local_target="$$target"; \
+	  (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/packages/x/fonts-tlwg/ttf-tlwg/Makefile b/packages/x/fonts-tlwg/ttf-tlwg/Makefile
new file mode 100644
index 0000000..eada5cf
--- /dev/null
+++ b/packages/x/fonts-tlwg/ttf-tlwg/Makefile
@@ -0,0 +1,39 @@
+#
+# Project Home:
+# ============
+# https://linux.thai.net/projects/thaixfonts
+#
+# Downloads:
+# =========
+# https://linux.thai.net/pub/thailinux/software/fonts-tlwg/fonts
+#
+
+url         = https://linux.thai.net/pub/thailinux/software/fonts-tlwg/fonts
+
+versions    = 0.7.3
+
+pkgname     = ttf-tlwg
+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 tarball in $(tarballs) ; do \
+	  wget -N $(url)/$$tarball ; \
+	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)