Koen Kooi a955d07e4d angstrom-layers: add ttf-fonts to meta-openembedded
* liberation was left out because poky already has it
* freefonts was left out due to missing license

Signed-off-by: Koen Kooi <k-kooi@ti.com>
2010-11-01 20:07:14 +01:00

24 lines
612 B
PHP

DESCRIPTION ?= "TrueType font package ${PN}"
SECTION = "fonts"
PRIORITY = "optional"
# don't use RRECOMMENDS_${PN} here because sometimes each font is packaged to separate package and each one needs this dep to call update-fonts
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"