diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-02-15 02:59:58 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2005-02-15 02:59:58 +0000 |
commit | e2f08a99c42f5f0d9c20d2359a4031f90366fda3 (patch) | |
tree | 32e7438dec202abf36ff87fcbf2f7c8522fb4b36 /packages/qpf-fonts | |
parent | c8ad9b636344a94a164640323d129ca1e8ced4b8 (diff) |
make qpf-qte no longer suck thanks to the usage of do_split_packages
BKrev: 421165aeUfrp7Uhmw4agwa7mHEWWlA
Diffstat (limited to 'packages/qpf-fonts')
-rw-r--r-- | packages/qpf-fonts/qpf-qte_2.3.10.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/qpf-fonts/qpf-qte_2.3.10.bb b/packages/qpf-fonts/qpf-qte_2.3.10.bb index e69de29bb2..0ab77560bf 100644 --- a/packages/qpf-fonts/qpf-qte_2.3.10.bb +++ b/packages/qpf-fonts/qpf-qte_2.3.10.bb @@ -0,0 +1,43 @@ +DESCRIPTION = "Qt/Embedded Fonts Version ${PV}" +SECTION = "opie/fonts" +PRIORITY = "optional" +MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>" +LICENSE = "GPL QPL" +PR = "r0" + +SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-${PV}-free.tar.gz \ + file://update-qtfontdir" +S = "${WORKDIR}/qt-${PV}" + +do_configure() { + : +} + +do_compile() { + : +} + +pkg_postinst_fonts() { +#!/bin/sh +set -e +. /etc/profile +${sbindir}/update-qtfontdir +} + +python populate_packages_prepend() { + postinst = bb.data.getVar('pkg_postinst_fonts', d, 1) + postrm = postinst + pkgregex = "^([a-z]*_[0-9]*).*.qpf$" + pkgpattern = "qte-font-%s" + + do_split_packages(d, root='/opt/QtPalmtop/lib/fonts', file_regex=pkgregex, output_pattern=pkgpattern, + description='Qt/E font %s', postinst=postinst, postrm=postrm, recursive=True, hook=None, + extra_depends='qte-font-common') +} + +do_install() { + install -d ${D}/${sbindir}/ + install -m 0755 ${WORKDIR}/update-qtfontdir ${D}/${sbindir}/ + install -d ${D}${palmqtdir}/lib/fonts/ + cp -a lib/fonts/* ${D}${palmqtdir}/lib/fonts/ +} |