aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ttf-fonts/ttf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ttf-fonts/ttf.inc')
-rw-r--r--recipes/ttf-fonts/ttf.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/ttf-fonts/ttf.inc b/recipes/ttf-fonts/ttf.inc
new file mode 100644
index 0000000000..3c04f1b320
--- /dev/null
+++ b/recipes/ttf-fonts/ttf.inc
@@ -0,0 +1,22 @@
+DESCRIPTION ?= "TrueType font package ${PN}"
+SECTION = "fonts"
+PRIORITY = "optional"
+RRECOMMENDS += "font-update-common"
+
+# we don't need a compiler nor a c library for these fonts
+INHIBIT_DEFAULT_DEPS = "1"
+
+do_install() {
+ install -d ${D}${datadir}/fonts/truetype/
+ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
+}
+
+pkg_postinst_append() {
+ update-fonts
+}
+
+pkg_postrm_append() {
+ update-fonts
+}
+
+PACKAGE_ARCH = "all"