ttf.inc: add RDEPENDS on font-update-common and call the update script in postinst...
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 29 Jan 2008 09:57:33 +0000 (09:57 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 29 Jan 2008 09:57:33 +0000 (09:57 +0000)
packages/ttf-fonts/ttf.inc

index e0d1dd6..69561e8 100644 (file)
@@ -1,18 +1,18 @@
 SECTION = "fonts"
 PRIORITY = "optional"
-PACKAGE_ARCH = "all"
-#DEPENDS = "fontconfig opie-ttf-support"
-#RSUGGESTS = "fontconfig-utils opie-ttf-support"
-
-# I dont want TTF fonts to depend on fontconfig on device
-# as those fonts are used not only in X11 enviroment
+RDEPENDS += "font-update-common"
 
 do_install() {
     install -d ${D}${datadir}/fonts/truetype/
     install -m 0644 ${S}/*.ttf ${D}${datadir}/fonts/truetype/
 }
 
-#pkg_postinst () {
-##!/bin/sh
-#fc-cache
-#}
+pkg_postinst_append() {
+    update-fonts
+}
+
+pkg_postrm_append() {
+    update-fonts
+}
+
+PACKAGE_ARCH = "all"