diff options
author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2008-01-29 09:57:33 +0000 |
---|---|---|
committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2008-01-29 09:57:33 +0000 |
commit | 9e42fdd5e33e745cabe1589d01d8b5e5bcf2f11c (patch) | |
tree | bf686d8a7cafc23dff4822392e503475cd358bea /packages | |
parent | 501f302fb41e747f2997984a57974ecc0e000b27 (diff) |
ttf.inc: add RDEPENDS on font-update-common and call the update script in postinst/postrm. Partly closes 2430.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/ttf-fonts/ttf.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc index e0d1dd6a54..69561e8506 100644 --- a/packages/ttf-fonts/ttf.inc +++ b/packages/ttf-fonts/ttf.inc @@ -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" |