summaryrefslogtreecommitdiff
path: root/repo/font-liberation/font-liberation.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/font-liberation/font-liberation.xibuild')
-rw-r--r--repo/font-liberation/font-liberation.xibuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/font-liberation/font-liberation.xibuild b/repo/font-liberation/font-liberation.xibuild
new file mode 100644
index 0000000..b9921ec
--- /dev/null
+++ b/repo/font-liberation/font-liberation.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="font-liberation"
+DESC="Fonts to replace commonly used Microsoft Windows fonts"
+
+MAKEDEPS=""
+
+PKG_VER=2.1.5
+SOURCE="https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+30-liberation-mono.conf
+30-liberation-sans.conf
+30-liberation-serif.conf
+45-liberation.conf
+90-liberation.conf
+"
+
+package() {
+ install -D -m644 ./*.ttf -t "$PKG_DEST"/usr/share/fonts/liberation/
+
+ mkdir -p "$PKG_DEST"/etc/fonts/conf.d
+
+ local i; for i in "$BUILD_ROOT"/*.conf; do
+ install -D -m644 "$i" -t "$PKG_DEST"/etc/fonts/conf.avail/
+ ln -s ../conf.avail/${i##*/} "$PKG_DEST"/etc/fonts/conf.d/${i##*/}
+ done
+}
+
+