mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 12:41:58 +02:00
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
27 lines
657 B
PHP
27 lines
657 B
PHP
DESCRIPTION ?= "TrueType font package ${PN}"
|
|
SECTION = "fonts"
|
|
# 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() {
|
|
if [ -z "$D" ]; then
|
|
update-fonts
|
|
fi
|
|
}
|
|
|
|
pkg_postrm_append() {
|
|
if [ -z "$D" ]; then
|
|
update-fonts
|
|
fi
|
|
}
|
|
|
|
inherit allarch
|