Merge branch 'vuplus-1.6k' of code.vuplus.com:/opt/repository/openembedded into vuplu...
[vuplus_openembedded] / recipes / ttf-fonts / ttf.inc
1 DESCRIPTION ?= "TrueType font package ${PN}"
2 SECTION = "fonts"
3 PRIORITY = "optional"
4 RRECOMMENDS += "font-update-common"
5
6 # we don't need a compiler nor a c library for these fonts
7 INHIBIT_DEFAULT_DEPS = "1"
8
9 do_install() {
10     install -d ${D}${datadir}/fonts/truetype/
11     find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
12 }
13
14 pkg_postinst_append() {
15     update-fonts
16 }
17
18 pkg_postrm_append() {
19     update-fonts
20 }
21
22 PACKAGE_ARCH = "all"