4 PV = "0.2.1+gitr${SRCREV}"
8 SRC_URI = "git://git.paroli-project.org/paroli.git;protocol=http;branch=shr"
13 PACKAGES += "${PN}-autostart ${PN}-theme ${PN}-sounds ${PN}-calculator"
29 E_CONFIG_DIR="/usr/share/enlightenment/data"
31 RULES_YAML = rules.yaml
32 RULES_YAML_om-gta01 = gta01_rules.yaml
34 do_configure_append() {
35 # fix absolute etc reference
36 sed -i "s|/etc/|../../etc/|" ${S}/setup.py
37 sed -i "s|prefix,|'../../usr/',|" ${S}/setup.py
38 sed -i "s|core/|/usr/lib/python2.6/site-packages/|" ${S}/scripts/paroli
39 sed -i "s|services|/usr/share/paroli/services|" ${S}/scripts/paroli.fso.cfg
40 sed -i "s|applications|/usr/share/paroli/applications|" ${S}/scripts/paroli.fso.cfg
44 # install ${D}${sysconfdir}/paroli/paroli.fso.cfg ${D}${sysconfdir}/paroli/paroli.cfg
46 # install paroli theme
47 install -d ${D}${E_CONFIG_DIR}/themes
48 install ${S}/data/e-config/paroli.edj ${D}${E_CONFIG_DIR}/themes/
49 install ${S}/data/e-config/serenity.edj ${D}${E_CONFIG_DIR}/themes/
50 install -d ${D}${E_CONFIG_DIR}/config/paroli
51 install ${S}/data/e-config/paroli/* ${D}${E_CONFIG_DIR}/config/paroli/
52 install -d ${D}${E_CONFIG_DIR}/config/paroli-serenity
53 install ${S}/data/e-config/paroli-serenity/* ${D}${E_CONFIG_DIR}/config/paroli-serenity/
55 install -d ${D}${datadir}/elementary/themes
56 install ${S}/data/paroli.edj ${D}${datadir}/elementary/themes
58 install -d ${D}${datadir}/icons
59 install ${S}/data/paroli.png ${D}${datadir}/icons
61 install -d ${D}${datadir}/applications
62 install ${S}/data/paroli.desktop ${D}${datadir}/applications
65 install -d ${D}${E_CONFIG_DIR}/applications/all
66 cp ${D}/usr/share/applications/paroli.desktop ${D}${E_CONFIG_DIR}/applications/all
67 install -d ${D}${E_CONFIG_DIR}/applications/startup
68 echo "${E_CONFIG_DIR}/applications/all/paroli.desktop" >> ${D}${E_CONFIG_DIR}/applications/startup/.order
70 # install -d ${D}${sysconfdir}/freesmartphone/oevents
71 # install ${S}/data/${RULES_YAML} ${D}${sysconfdir}/freesmartphone/oevents/paroli_rules.yaml
72 # install ${S}/data/frameworkd.conf ${D}${sysconfdir}/paroli_frameworkd.conf
74 install -d ${D}${sysconfdir}/freesmartphone/opreferences/conf/phone
75 install ${S}/data/default.yaml ${D}${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml
77 install -d ${D}${datadir}/dbus-1/system-services/
78 install ${S}/data/dbus/org.tichy.launcher.service ${D}${datadir}/dbus-1/system-services/
80 install -d ${D}${datadir}/sounds
81 install ${S}/data/sounds/* ${D}${datadir}/sounds
85 pkg_postinst_${PN}-autostart() {
87 # do this off or on line
88 if [ "x$D" != "x" ]; then
89 ROOTFS=${IMAGE_ROOTFS}
94 # post installation script
95 if [ -x $ROOTFS${sysconfdir}/X11/Xsession.d/80zhone ]; then
96 echo "*******************************************"
97 echo "Deactivating zhone autostart"
98 echo "*******************************************"
99 chmod -x $ROOTFS${sysconfdir}/X11/Xsession.d/80zhone || true
104 #pkg_postinst_${PN}-sounds() {
106 # do this off or on line
107 #if [ "x$D" != "x" ]; then
108 # ROOTFS=${IMAGE_ROOTFS}
112 # post installation script
113 #if [ ! -e /$ROOTFS${sysconfdir}/freesmartphone/opreferences/conf/phone/old_default.yaml ] ; then
114 # echo "Backing up ${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml"
115 # mv $ROOTFS${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml $ROOTFS${sysconfdir}/freesmartphone/opreferences/conf/phone/old_default.yaml
117 #cp $ROOTFS${sysconfdir}/freesmartphone/opreferences/conf/phone/paroli_default.yaml $ROOTFS${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml
121 pkg_postinst_${PN}-theme() {
123 # do this off or on line
124 if [ "x$D" != "x" ]; then
125 ROOTFS=${IMAGE_ROOTFS}
129 # post installation script
130 echo 'E_PROFILE="-profile paroli"' > $ROOTFS${sysconfdir}/enlightenment/default_profile
135 ${sysconfdir}/dbus-1 \
136 ${sysconfdir}/paroli \
137 ${sysconfdir}/freesmartphone/oevents \
140 ${datadir}/paroli/applications/common-for-edje \
141 ${datadir}/paroli/applications/inout \
142 ${datadir}/paroli/applications/telephony \
143 ${datadir}/paroli/applications/messages \
144 ${datadir}/paroli/applications/launcher \
145 ${datadir}/paroli/applications/people \
146 ${datadir}/paroli/applications/settings \
147 ${datadir}/applications \
148 ${datadir}/elementary \
149 ${datadir}/paroli/services \
150 ${datadir}/paroli/data \
153 ${datadir}/dbus-1/system-services/ \
156 FILES_${PN}-theme = " \
157 ${E_CONFIG_DIR}/themes \
158 ${E_CONFIG_DIR}/config \
161 FILES_${PN}-autostart = "${E_CONFIG_DIR}/applications"
163 FILES_${PN}-sounds = " \
165 ${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml \
168 FILES_${PN}-calculator = " \
169 ${datadir}/paroli/applications/calculator \
172 CONFFILES_${PN} += " \
173 ${sysconfdir}/paroli/paroli.fallback.cfg \
174 ${sysconfdir}/paroli/paroli.pyneo.cfg \
175 ${sysconfdir}/paroli/paroli.fso.cfg \
177 CONFFILES_${PN}-sounds += " \
178 ${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml \