summaryrefslogtreecommitdiff
path: root/packages/opie-ttf-support/opie-ttf-support_1.0.0.bb
blob: 10180deea346d82471531a738c03b9cfacf42f97 (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
DESCRIPTION = "Meta-package for Opie TTF support"
DEPENDS = "freetype opie-freetype"
RDEPENDS = "opie-freetype"
SECTION = "opie/fonts"
PR = "r4"

SRC_URI = "file://update-qtttffontdir.c"
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 -m 0755 update-qtttffontdir ${D}${sbindir}
}

pkg_postinst() {
#!/bin/sh
if [ -n "$D" ]; then exit 1; fi
mkdir -p /opt/QtPalmtop/lib/fonts/
${sbindir}/update-qtttffontdir ${datadir}/fonts/truetype >/opt/QtPalmtop/lib/fonts/fontdir
}