1eb8dc403SDave CobbleySUMMARY = "Custom Matchbox session files for the Sato environment" 2eb8dc403SDave CobbleyHOMEPAGE = "http://www.matchbox-project.org/" 3eb8dc403SDave CobbleyBUGTRACKER = "http://bugzilla.yoctoproject.org/" 4eb8dc403SDave Cobbley 57e0e3c0cSAndrew GeisslerLICENSE = "GPL-2.0-or-later" 6eb8dc403SDave CobbleyLIC_FILES_CHKSUM = "file://session;endline=3;md5=f8a5c5b9c279e52dc094d10e11c2be63" 7eb8dc403SDave Cobbley 8eb8dc403SDave CobbleySECTION = "x11" 9213cb269SPatrick WilliamsRDEPENDS:${PN} = "formfactor matchbox-theme-sato matchbox-panel-2 matchbox-desktop matchbox-session gconf" 10eb8dc403SDave Cobbley 11eb8dc403SDave Cobbley# This package is architecture specific because the session script is modified 12eb8dc403SDave Cobbley# based on the machine architecture. 13eb8dc403SDave CobbleyPACKAGE_ARCH = "${MACHINE_ARCH}" 14eb8dc403SDave Cobbley 156dbb316aSBrad Bishopinherit features_check 16eb8dc403SDave Cobbley 17eb8dc403SDave Cobbley# The matchbox-theme-sato requires x11 in DISTRO_FEATURES 18eb8dc403SDave CobbleyREQUIRED_DISTRO_FEATURES = "x11" 19eb8dc403SDave Cobbley 20eb8dc403SDave CobbleySRC_URI = "file://session \ 21eb8dc403SDave Cobbley file://index.theme" 22eb8dc403SDave CobbleyS = "${WORKDIR}" 23eb8dc403SDave Cobbley 24213cb269SPatrick WilliamsFILES:${PN} += "${datadir}/themes/Sato/index.theme" 25eb8dc403SDave Cobbley 26eb8dc403SDave Cobbleydo_install() { 27eb8dc403SDave Cobbley # This is the set of machine features that the script has markers for 28*520786ccSPatrick Williams FEATURES="acpi phone" 29eb8dc403SDave Cobbley SCRIPT="${S}/sedder" 30eb8dc403SDave Cobbley rm -f $SCRIPT 31eb8dc403SDave Cobbley touch $SCRIPT 32eb8dc403SDave Cobbley for FEAT in $FEATURES; do 33eb8dc403SDave Cobbley if echo ${MACHINE_FEATURES} | awk "/$FEAT/ {exit 1}"; then 34eb8dc403SDave Cobbley echo "/feature-$FEAT/d" >> $SCRIPT 35eb8dc403SDave Cobbley fi 36eb8dc403SDave Cobbley done 37eb8dc403SDave Cobbley 38eb8dc403SDave Cobbley install -D ${S}/index.theme ${D}/${datadir}/themes/Sato/index.theme 39eb8dc403SDave Cobbley install -d ${D}/${sysconfdir}/matchbox 40eb8dc403SDave Cobbley sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session 41eb8dc403SDave Cobbley chmod +x ${D}/${sysconfdir}/matchbox/session 42eb8dc403SDave Cobbley} 43eb8dc403SDave Cobbley 44eb8dc403SDave CobbleyPACKAGE_WRITE_DEPS += "gconf-native" 45213cb269SPatrick Williamspkg_postinst:${PN} () { 46eb8dc403SDave Cobbley set_value() { 47eb8dc403SDave Cobbley #type, name, value 48eb8dc403SDave Cobbley gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type $1 --set /desktop/poky/interface/$2 "$3" 49eb8dc403SDave Cobbley } 50eb8dc403SDave Cobbley set_value string theme Adwaita 51eb8dc403SDave Cobbley set_value string matchbox_theme Sato 52eb8dc403SDave Cobbley set_value string icon_theme Sato 53eb8dc403SDave Cobbley set_value bool touchscreen true 54eb8dc403SDave Cobbley set_value string font_name "Sans 9" 55eb8dc403SDave Cobbley} 56