47222aa2af4e599d5f34ba18872d911f7bd5613f
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts.bb
1 DESCRIPTION = "Scripts to support system options on the OpenPandora."
2 LICENSE = "GPLV2"
3
4 COMPATIBLE_MACHINE = "omap3-pandora"
5
6 DEPENDS = "zenity dbus"
7 RDEPENDS = "zenity dbus"
8
9 PR = "r40"
10
11 SRC_URI = " \
12           file://op_bright.sh \
13 #          file://op_bright.desktop \
14           file://op_cpuspeed.sh \
15           file://op_cpuspeed.pnd \          
16           file://op_wifi.sh \
17           file://op_wifi.pnd \  
18 #         file://op_wifi.desktop \ 
19           file://op_bluetooth.sh \
20           file://op_bluetooth-check.desktop \
21           file://op_bluetooth.desktop \          
22           file://op_startupmanager.sh \
23           file://op_startupmanager.pnd \
24           file://op_switchgui.sh \
25           file://op_switchgui.pnd \
26           file://startnetbooklauncher \
27           file://startmmenu \    
28           file://startpmenu \ 
29           file://stopmmenu \
30           file://op_calibrate.sh \
31           file://op_calibrate.pnd \
32           file://op_datetime.sh \
33           file://op_datetime.pnd \
34           file://op_usermanager.sh \
35           file://op_usermanager.pnd \
36           file://op_lcdsettings.sh \
37           file://op_lcdsettings.pnd \
38           file://op_lcdrate.sh \
39           file://op_storage.sh \
40           file://op_storage.pnd \
41           file://op_nubmode.sh \
42           file://op_nubmode.pnd \
43           file://gui.conf \
44           file://gamma.conf \
45           file://service.conf \
46           file://op_env.sh \
47 #          file://pandorascripts.pnd \
48           file://abiword.pnd \
49           file://arora.pnd \
50           file://claws-mail.pnd \
51           file://evince.pnd \
52           file://gigolo.pnd \
53           file://gnumeric.pnd \
54           file://midori.pnd \
55           file://mousepad.pnd \
56           file://pidgin.pnd \
57           file://ristretto.pnd \
58           file://squeeze.pnd \
59           file://thunar.pnd \
60           file://xchat.pnd \
61 "
62
63 do_install() {
64           install -d ${D}${prefix}/pandora/scripts/
65           install -m 0755 ${WORKDIR}/op_bright.sh ${D}${prefix}/pandora/scripts/
66           install -m 0755 ${WORKDIR}/op_cpuspeed.sh ${D}${prefix}/pandora/scripts/
67           install -m 0755 ${WORKDIR}/op_wifi.sh ${D}${prefix}/pandora/scripts/
68           install -m 0755 ${WORKDIR}/op_bluetooth.sh ${D}${prefix}/pandora/scripts/
69           install -m 0755 ${WORKDIR}/op_startupmanager.sh ${D}${prefix}/pandora/scripts/
70           install -m 0755 ${WORKDIR}/op_switchgui.sh ${D}${prefix}/pandora/scripts/
71           install -m 0755 ${WORKDIR}/op_calibrate.sh ${D}${prefix}/pandora/scripts/
72           install -m 0755 ${WORKDIR}/op_datetime.sh ${D}${prefix}/pandora/scripts/
73           install -m 0755 ${WORKDIR}/op_usermanager.sh ${D}${prefix}/pandora/scripts/
74           install -m 0755 ${WORKDIR}/op_lcdsettings.sh ${D}${prefix}/pandora/scripts/
75           install -m 0755 ${WORKDIR}/op_lcdrate.sh ${D}${prefix}/pandora/scripts/
76           install -m 0755 ${WORKDIR}/op_nubmode.sh ${D}${prefix}/pandora/scripts/
77           install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/
78
79           install -d ${D}${prefix}/pandora/apps/
80           install -m 0755 ${WORKDIR}/op_calibrate.pnd ${D}${prefix}/pandora/apps/
81           install -m 0755 ${WORKDIR}/op_cpuspeed.pnd ${D}${prefix}/pandora/apps/
82           install -m 0755 ${WORKDIR}/op_datetime.pnd ${D}${prefix}/pandora/apps/
83           install -m 0755 ${WORKDIR}/op_lcdsettings.pnd ${D}${prefix}/pandora/apps/
84           install -m 0755 ${WORKDIR}/op_nubmode.pnd ${D}${prefix}/pandora/apps/
85           install -m 0755 ${WORKDIR}/op_startupmanager.pnd ${D}${prefix}/pandora/apps/
86           install -m 0755 ${WORKDIR}/op_storage.pnd ${D}${prefix}/pandora/apps/
87           install -m 0755 ${WORKDIR}/op_switchgui.pnd ${D}${prefix}/pandora/apps/
88           install -m 0755 ${WORKDIR}/op_usermanager.pnd ${D}${prefix}/pandora/apps/
89           install -m 0755 ${WORKDIR}/op_wifi.pnd ${D}${prefix}/pandora/apps/
90
91           install -d ${D}${prefix}/pandora/mmenu/
92           install -m 0755 ${WORKDIR}/abiword.pnd ${D}${prefix}/pandora/mmenu/
93           install -m 0755 ${WORKDIR}/arora.pnd ${D}${prefix}/pandora/mmenu/
94           install -m 0755 ${WORKDIR}/claws-mail.pnd ${D}${prefix}/pandora/mmenu/
95           install -m 0755 ${WORKDIR}/evince.pnd ${D}${prefix}/pandora/mmenu/
96           install -m 0755 ${WORKDIR}/gigolo.pnd ${D}${prefix}/pandora/mmenu/
97           install -m 0755 ${WORKDIR}/gnumeric.pnd ${D}${prefix}/pandora/mmenu/
98           install -m 0755 ${WORKDIR}/midori.pnd ${D}${prefix}/pandora/mmenu/
99           install -m 0755 ${WORKDIR}/mousepad.pnd ${D}${prefix}/pandora/mmenu/
100           install -m 0755 ${WORKDIR}/pidgin.pnd ${D}${prefix}/pandora/mmenu/
101           install -m 0755 ${WORKDIR}/ristretto.pnd ${D}${prefix}/pandora/mmenu/
102           install -m 0755 ${WORKDIR}/squeeze.pnd ${D}${prefix}/pandora/mmenu/
103           install -m 0755 ${WORKDIR}/thunar.pnd ${D}${prefix}/pandora/mmenu/
104           install -m 0755 ${WORKDIR}/xchat.pnd ${D}${prefix}/pandora/mmenu/
105
106           install -d ${D}${datadir}/applications/
107 #         install -m 0644 ${WORKDIR}/op_bright.desktop ${D}${datadir}/applications/
108 #          install -m 0644 ${WORKDIR}/op_cpuspeed.desktop ${D}${datadir}/applications/
109 #          install -m 0644 ${WORKDIR}/op_wifi.desktop ${D}${datadir}/applications/
110           install -m 0644 ${WORKDIR}/op_bluetooth.desktop ${D}${datadir}/applications/
111 #          install -m 0644 ${WORKDIR}/op_startupmanager.desktop ${D}${datadir}/applications/
112 #          install -m 0644 ${WORKDIR}/op_switchgui.desktop ${D}${datadir}/applications/          
113 #          install -m 0644 ${WORKDIR}/op_calibrate.desktop ${D}${datadir}/applications/
114 #          install -m 0644 ${WORKDIR}/op_datetime.desktop ${D}${datadir}/applications/
115 #          install -m 0644 ${WORKDIR}/op_usermanager.desktop ${D}${datadir}/applications/
116 #          install -m 0644 ${WORKDIR}/op_lcdsettings.desktop ${D}${datadir}/applications/
117 #         install -m 0644 ${WORKDIR}/op_nubmode.desktop ${D}${datadir}/applications/
118           
119           install -d ${D}${sysconfdir}/xdg/autostart/
120           install -m 0644 ${WORKDIR}/op_bluetooth-check.desktop ${D}${sysconfdir}/xdg/autostart/op_bluetooth-check.desktop
121
122           install -d ${D}${sysconfdir}/pandora/conf/
123           install -m 0644 ${WORKDIR}/gui.conf ${D}${sysconfdir}/pandora/conf/gui.conf
124           install -m 0644 ${WORKDIR}/gamma.conf ${D}${sysconfdir}/pandora/conf/gamma.conf
125           install -m 0644 ${WORKDIR}/service.conf ${D}${sysconfdir}/pandora/conf/service.conf
126
127           install -d ${D}${sysconfdir}/profile.d/
128           install -m 0755 ${WORKDIR}/op_env.sh ${D}${sysconfdir}/profile.d/
129
130           install -d ${D}${bindir}/
131           install -m 0755 ${WORKDIR}/startnetbooklauncher ${D}${bindir}/
132           install -m 0755 ${WORKDIR}/startmmenu ${D}${bindir}/
133           install -m 0755 ${WORKDIR}/startpmenu ${D}${bindir}/
134           install -m 0755 ${WORKDIR}/stopmmenu ${D}${bindir}/
135 }
136
137 PACKAGE_ARCH = "${MACHINE_ARCH}"
138
139 FILES_${PN} += "${prefix} ${datadir}"