python-2.6.6: backport pkgconfig support from version 2.7.1 and bump PR
[openembedded.git] / recipes / buglabs / matchbox-theme-bug.inc
blob5addf4763f5a70794b65e3c40dc6b7e547c760f1
1 LICENSE = "CC-BY-SA3"
2 DEPENDS = "matchbox-wm"
3 SECTION = "x11/wm"
5 SRCREV = "12121"
7 SRC_URI += "svn://bugcamp.net/bug/trunk/;module=com.buglabs.bug.theme/matchbox/${THEME_NAME} \
8             file://session"
10 FILES_${PN} = "${datadir}/themes/${THEME_NAME} \
11                ${sysconfdir}/matchbox/session"
13 S = ${WORKDIR}/com.buglabs.bug.theme/matchbox/${THEME_NAME}
15 REQUIRES = "matchbox-sato"
17 do_install() {
18     install -m 0755 -d ${D}${datadir}/themes/${THEME_NAME}/matchbox
19     install -m 0755 -d ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0
21     install -m 0644 ${S}/index.theme ${D}${datadir}/themes/${THEME_NAME}/
22     install -m 0644 ${S}/gtk-2.0/*.png ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0/
23     install -m 0644 ${S}/gtk-2.0/gtkrc ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0/
24     install -m 0644 ${S}/matchbox/*.png ${D}${datadir}/themes/${THEME_NAME}/matchbox/
25     install -m 0644 ${S}/matchbox/theme.xml ${D}${datadir}/themes/${THEME_NAME}/matchbox/
26     install -m 0755 -d ${D}${sysconfdir}/matchbox
27     install -m 0744 ${WORKDIR}/session ${D}${sysconfdir}/matchbox/session
30 pkg_postinst_${PN} () {
31         if [ "x$D" != "x" ]; then
32                 exit 1
33         fi
35         . ${sysconfdir}/init.d/functions
37         gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme ${THEME_NAME}
38         gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme Bug
39         gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/touchscreen true
40         gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 9"