summaryrefslogtreecommitdiffstats
path: root/meta-openmoko/packages/openmoko2
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/packages/openmoko2
parentda743fb70c0b84f4aabb76bb9b4ac2f5248869d6 (diff)
downloadpoky-9ca832b99176e11aee8d7231906503f9b13341c0.tar.gz
openmoko-icon-theme-standard2: add a compat package which symlinks the new icons into hicolor
Diffstat (limited to 'meta-openmoko/packages/openmoko2')
-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 @@
1DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework" 1DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework"
2SECTION = "openmoko/base" 2SECTION = "openmoko/base"
3PV = "0.1.0+svnr${SRCREV}" 3PV = "0.1.0+svnr${SRCREV}"
4PR = "r1" 4PR = "r2"
5
6PACKAGE_ARCH = "all"
5 7
6inherit openmoko2 8inherit openmoko2
7 9
8SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http" 10SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http"
9S = "${WORKDIR}/icons" 11S = "${WORKDIR}/icons"
10 12
13PACKAGES += "${PN}-compat"
14
15FILES_${PN} = "${datadir}/icons/openmoko-standard"
16FILES_${PN}-compat = "${datadir}/icons/hicolor"
17
18do_install_append () {
19 mkdir --parents "${D}/${datadir}/icons/hicolor"
20 cd "${D}/${datadir}/icons/openmoko-standard"
21 FILES=`find . -type f -name moko\* -o -name openmoko*`
22 cd ../hicolor
23 for F in $FILES; do
24 mkdir --parents `dirname $F`
25 ln -s ${datadir}/icons/openmoko-standard/$F $F
26 done
27}
28
11pkg_postinst_${PN} () { 29pkg_postinst_${PN} () {
12 if [ "x$D" != "x" ]; then 30 if [ "x$D" != "x" ]; then
13 exit 1 31 exit 1
@@ -15,4 +33,9 @@ pkg_postinst_${PN} () {
15 gtk-update-icon-cache -q /usr/share/icons/openmoko-standard 33 gtk-update-icon-cache -q /usr/share/icons/openmoko-standard
16} 34}
17 35
18PACKAGE_ARCH = "all" 36pkg_postinst_${PN}-compat () {
37 if [ "x$D" != "x" ]; then
38 exit 1
39 fi
40 gtk-update-icon-cache -q /usr/share/icons/hicolor
41}