diff options
Diffstat (limited to 'meta-openmoko')
-rw-r--r-- | meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb b/meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb index e145fb2d9..c97980eee 100644 --- a/meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb +++ b/meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb @@ -1,13 +1,31 @@ DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework" SECTION = "openmoko/base" PV = "0.1.0+svnr${SRCREV}" -PR = "r1" +PR = "r2" + +PACKAGE_ARCH = "all" inherit openmoko2 SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http" S = "${WORKDIR}/icons" +PACKAGES += "${PN}-compat" + +FILES_${PN} = "${datadir}/icons/openmoko-standard" +FILES_${PN}-compat = "${datadir}/icons/hicolor" + +do_install_append () { + mkdir --parents "${D}/${datadir}/icons/hicolor" + cd "${D}/${datadir}/icons/openmoko-standard" + FILES=`find . -type f -name moko\* -o -name openmoko*` + cd ../hicolor + for F in $FILES; do + mkdir --parents `dirname $F` + ln -s ${datadir}/icons/openmoko-standard/$F $F + done +} + pkg_postinst_${PN} () { if [ "x$D" != "x" ]; then exit 1 @@ -15,4 +33,9 @@ pkg_postinst_${PN} () { gtk-update-icon-cache -q /usr/share/icons/openmoko-standard } -PACKAGE_ARCH = "all" +pkg_postinst_${PN}-compat () { + if [ "x$D" != "x" ]; then + exit 1 + fi + gtk-update-icon-cache -q /usr/share/icons/hicolor +} |