aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ttf-fonts/ttf.inc
blob: 101d11b59aa2417948d3b0bbe155abd5237be168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DESCRIPTION ?= "TrueType font package ${PN}"
SECTION = "fonts"
PRIORITY = "optional"
RRECOMMENDS_${PN} += "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"