diff options
Diffstat (limited to 'repo/font-noto/font-noto.xibuild')
-rw-r--r-- | repo/font-noto/font-noto.xibuild | 37 |
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 +} |