summaryrefslogtreecommitdiffstats
path: root/meta-openmoko
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2008-12-16 15:36:51 +0000
committerRoss Burton <ross@linux.intel.com>2008-12-16 15:36:51 +0000
commit9ca832b99176e11aee8d7231906503f9b13341c0 (patch)
tree192ca16a8a1ba01088a1042e360bab36134605b0 /meta-openmoko
parentda743fb70c0b84f4aabb76bb9b4ac2f5248869d6 (diff)
downloadopenembedded-core-9ca832b99176e11aee8d7231906503f9b13341c0.tar.gz
openembedded-core-9ca832b99176e11aee8d7231906503f9b13341c0.tar.bz2
openembedded-core-9ca832b99176e11aee8d7231906503f9b13341c0.zip
openmoko-icon-theme-standard2: add a compat package which symlinks the new icons into hicolor
Diffstat (limited to 'meta-openmoko')
-rw-r--r--meta-openmoko/packages/openmoko2/openmoko-icon-theme-standard2_svn.bb27
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 e145fb2d98..c97980eee1 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
+}