blob: 90734b6bd09576886a47f42a422deecb589644c1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Custom Matchbox session files for the Sato environment"
2HOMEPAGE = "http://www.matchbox-project.org/"
3BUGTRACKER = "http://bugzilla.yoctoproject.org/"
4
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "GPL-2.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006LIC_FILES_CHKSUM = "file://session;endline=3;md5=f8a5c5b9c279e52dc094d10e11c2be63"
7
8SECTION = "x11"
Patrick Williams213cb262021-08-07 19:21:33 -05009RDEPENDS:${PN} = "formfactor matchbox-theme-sato matchbox-panel-2 matchbox-desktop matchbox-session gconf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11# This package is architecture specific because the session script is modified
12# based on the machine architecture.
13PACKAGE_ARCH = "${MACHINE_ARCH}"
14
Brad Bishop6dbb3162019-11-25 09:41:34 -050015inherit features_check
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17# The matchbox-theme-sato requires x11 in DISTRO_FEATURES
18REQUIRED_DISTRO_FEATURES = "x11"
19
Patrick Williamsc0f7c042017-02-23 20:41:17 -060020SRC_URI = "file://session \
21 file://index.theme"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022S = "${WORKDIR}"
23
Patrick Williams213cb262021-08-07 19:21:33 -050024FILES:${PN} += "${datadir}/themes/Sato/index.theme"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060025
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026do_install() {
27 # This is the set of machine features that the script has markers for
Patrick Williams520786c2023-06-25 16:20:36 -050028 FEATURES="acpi phone"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 SCRIPT="${S}/sedder"
30 rm -f $SCRIPT
31 touch $SCRIPT
32 for FEAT in $FEATURES; do
33 if echo ${MACHINE_FEATURES} | awk "/$FEAT/ {exit 1}"; then
34 echo "/feature-$FEAT/d" >> $SCRIPT
35 fi
36 done
37
Patrick Williamsc0f7c042017-02-23 20:41:17 -060038 install -D ${S}/index.theme ${D}/${datadir}/themes/Sato/index.theme
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 install -d ${D}/${sysconfdir}/matchbox
40 sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session
41 chmod +x ${D}/${sysconfdir}/matchbox/session
42}
43
Brad Bishop6e60e8b2018-02-01 10:27:11 -050044PACKAGE_WRITE_DEPS += "gconf-native"
Patrick Williams213cb262021-08-07 19:21:33 -050045pkg_postinst:${PN} () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046 set_value() {
47 #type, name, value
48 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type $1 --set /desktop/poky/interface/$2 "$3"
49 }
Patrick Williamsc0f7c042017-02-23 20:41:17 -060050 set_value string theme Adwaita
51 set_value string matchbox_theme Sato
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052 set_value string icon_theme Sato
53 set_value bool touchscreen true
54 set_value string font_name "Sans 9"
55}