summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}