summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/packages/ttf-fonts/liberation-fonts/30-liberation-aliases.conf17
-rw-r--r--meta/packages/ttf-fonts/liberation-fonts_3.bb32
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/packages/ttf-fonts/liberation-fonts/30-liberation-aliases.conf b/meta/packages/ttf-fonts/liberation-fonts/30-liberation-aliases.conf
new file mode 100644
index 000000000..06094503c
--- /dev/null
+++ b/meta/packages/ttf-fonts/liberation-fonts/30-liberation-aliases.conf
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- conf.d/sub-pixel.conf -->
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <accept><family>Liberation Sans</family></accept>
+ </alias>
+ <alias>
+ <family>serif</family>
+ <accept><family>Liberation Serif</family></accept>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <accept><family>Liberation Mono</family></accept>
+ </alias>
+</fontconfig>
diff --git a/meta/packages/ttf-fonts/liberation-fonts_3.bb b/meta/packages/ttf-fonts/liberation-fonts_3.bb
new file mode 100644
index 000000000..14fa8dc8a
--- /dev/null
+++ b/meta/packages/ttf-fonts/liberation-fonts_3.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "The fonts - TTF Edition"
+SECTION = "x11/fonts"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+PACKAGE_ARCH = "all"
+RDEPENDS = "fontconfig-utils"
+
+SRC_URI = "https://www.redhat.com/f/fonts/liberation-fonts-ttf-3.tar.gz \
+ file://30-liberation-aliases.conf"
+
+S = "${WORKDIR}/${PN}-0.2/"
+
+do_install () {
+ install -d ${D}${datadir}/fonts/ttf/
+ for i in *.ttf; do
+ install -m 0644 $i ${D}${prefix}/share/fonts/ttf/${i}
+ done
+
+ install -d ${D}${sysconfdir}/fonts/conf.d/
+ install -m 0644 ${WORKDIR}/30-liberation-aliases.conf ${D}${sysconfdir}/fonts/conf.d/
+
+ install -d ${D}${prefix}/share/doc/${PN}/
+ install -m 0644 License.txt ${D}${datadir}/doc/${PN}/
+}
+
+pkg_postinst () {
+#!/bin/sh
+fc-cache
+}
+
+PACKAGES = "${PN}"
+FILES_${PN} += "${sysconfdir} ${datadir}"