summaryrefslogtreecommitdiff
path: root/repo/font-liberation/font-liberation.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/font-liberation/font-liberation.xibuild
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
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
+}
+
+