summaryrefslogtreecommitdiff
path: root/repo/font-noto/font-noto.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/font-noto/font-noto.xibuild
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/font-noto/font-noto.xibuild')
-rw-r--r--repo/font-noto/font-noto.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/font-noto/font-noto.xibuild b/repo/font-noto/font-noto.xibuild
new file mode 100644
index 0000000..5679ef0
--- /dev/null
+++ b/repo/font-noto/font-noto.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME="font-noto"
+DESC="Noto font families for Latin, Cyrillic and Greek scripts"
+
+MAKEDEPS="make ruby"
+DEPS="fontconfig "
+
+PKG_VER=0_git20211101
+BRANCH=364fb14e20f82887280f103f638ff6450dbfc525
+SOURCE="https://github.com/googlefonts/noto-fonts/archive/$BRANCH/noto-fonts-$BRANCH.tar.gz"
+ADDITIONAL="noto-meta.json noto-meta fontconfig.xml.erb 58-noto-math.xml "
+
+prepare () {
+ chmod +x ./noto-meta
+}
+
+build () {
+ ./noto-meta gen-font-confs conf.d/
+}
+
+package () {
+ for f in hinted/ttf/*/*.ttf; do
+ install -D -m644 $f "$PKG_DEST/usr/share/fonts/noto"
+ done
+
+ for f in conf.d/*.xml; do
+ install -D -m644 $f "$PKG_DEST"/etc/fonts/conf.avail/
+ done
+
+ cd "$PKG_DEST"
+
+ mkdir -p etc/fonts/conf.d
+ local f; for f in etc/fonts/conf.avail/*.xml; do
+ ln -s ../conf.avail/${f##*/} "$PKG_DEST"/etc/fonts/conf.d/${f##*/}
+ done
+}