summaryrefslogtreecommitdiff
path: root/repo/font/font-noto/font-noto.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 23:40:38 +0100
commit0b977787374349328a21af0deade30d534cf3978 (patch)
tree3c2be28ef9a6f74a36f21cd48a34cb06b3080960 /repo/font/font-noto/font-noto.xibuild
parentdccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff)
fixed gcc loader/linker errors
Diffstat (limited to 'repo/font/font-noto/font-noto.xibuild')
-rw-r--r--repo/font/font-noto/font-noto.xibuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/font/font-noto/font-noto.xibuild b/repo/font/font-noto/font-noto.xibuild
new file mode 100644
index 0000000..a571587
--- /dev/null
+++ b/repo/font/font-noto/font-noto.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="font-noto"
+DESC="Noto font families for Latin, Cyrillic and Greek scripts"
+
+MAKEDEPS="make "
+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 () {
+ install -D -m644 hinted/ttf/*/*.ttf -t "$PKG_DEST/usr/share/fonts/noto"
+ install -D -m644 conf.d/*.xml -t "$PKG_DEST"/etc/fonts/conf.avail/
+
+ 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
+}