diff options
author | Ross Burton <ross@linux.intel.com> | 2008-12-16 15:36:51 +0000 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2008-12-16 15:36:51 +0000 |
commit | 9ca832b99176e11aee8d7231906503f9b13341c0 (patch) | |
tree | 192ca16a8a1ba01088a1042e360bab36134605b0 /meta-openmoko | |
parent | da743fb70c0b84f4aabb76bb9b4ac2f5248869d6 (diff) | |
download | poky-9ca832b99176e11aee8d7231906503f9b13341c0.tar.gz |
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.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 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 @@ | |||
1 | DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework" | 1 | DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework" |
2 | SECTION = "openmoko/base" | 2 | SECTION = "openmoko/base" |
3 | PV = "0.1.0+svnr${SRCREV}" | 3 | PV = "0.1.0+svnr${SRCREV}" |
4 | PR = "r1" | 4 | PR = "r2" |
5 | |||
6 | PACKAGE_ARCH = "all" | ||
5 | 7 | ||
6 | inherit openmoko2 | 8 | inherit openmoko2 |
7 | 9 | ||
8 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http" | 10 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http" |
9 | S = "${WORKDIR}/icons" | 11 | S = "${WORKDIR}/icons" |
10 | 12 | ||
13 | PACKAGES += "${PN}-compat" | ||
14 | |||
15 | FILES_${PN} = "${datadir}/icons/openmoko-standard" | ||
16 | FILES_${PN}-compat = "${datadir}/icons/hicolor" | ||
17 | |||
18 | do_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 | |||
11 | pkg_postinst_${PN} () { | 29 | pkg_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 | ||
18 | PACKAGE_ARCH = "all" | 36 | pkg_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 | } | ||