summaryrefslogtreecommitdiff
path: root/packages/ttf-fonts/ttf.inc
blob: e2be37819438e53d976ef6625c823d095599df4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SECTION = "fonts"
PRIORITY = "optional"
RRECOMMENDS += "font-update-common"

do_install() {
    install -d ${D}${datadir}/fonts/truetype/
    for f in *.ttf *.ttc
       do
          [ -f $f ] && install -m 0644 $f ${D}${datadir}/fonts/truetype/
       done
}

pkg_postinst_append() {
    update-fonts
}

pkg_postrm_append() {
    update-fonts
}

PACKAGE_ARCH = "all"