summaryrefslogtreecommitdiff
path: root/recipes/opie-ttf-support/opie-ttf-support_1.1.bb
blob: 18ce7ac0c9960b387ec43699e9e9b8e2fa63d567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DESCRIPTION = "Meta-package for Opie TTF support"
SECTION = "opie/fonts"
DEPENDS = "freetype"
PR = "r5"

SRC_URI = "file://update-qtttffontdir.c \
           file://02qtttffont-update"
S = "${WORKDIR}"

do_compile() {
        ${CC} ${CFLAGS} ${LDFLAGS} -I${STAGING_INCDIR}/freetype2 -lfreetype -o update-qtttffontdir update-qtttffontdir.c
}

do_install() {
        install -d ${D}${sbindir}
        install -d ${D}${sysconfdir}/update-fonts-common.d/
        install -m 0755 update-qtttffontdir ${D}${sbindir}
        install -m 0755 02qtttffont-update ${D}${sysconfdir}/update-fonts-common.d/
        sed -i 's!@@SBINDIR@@!${sbindir}!g' ${D}${sysconfdir}/update-fonts-common.d/02qtttffont-update
        sed -i 's!@@PALMTOPDIR@@!${palmtopdir}!g' ${D}${sysconfdir}/update-fonts-common.d/02qtttffont-update
        sed -i 's!@@DATADIR@@!${datadir}!g' ${D}${sysconfdir}/update-fonts-common.d/02qtttffont-update
}

pkg_postinst() {
        ${sysconfdir}/update-fonts-common.d/02qtttffont-update
}