07a00f0c23de358bc023af2b063c8b309e0ac85e
[openpandora.oe.git] / recipes / pandora-system / pandora-configtray.bb
1 DESCRIPTION = "A tray applet to change various Pandora-related settings"
2 LICENSE = "zlib"
3
4 PR = "r14"
5
6 PARALLEL_MAKE = ""
7 DEPENDS = "gtk+"
8 RDEPENDS_${PN}-wifi += "${PN}"
9
10 inherit pkgconfig
11
12 SRC_URI = " \
13           git://github.com/slaeshjag/pandora-configbutton.git;protocol=git;branch=master \
14           file://cpu.png \
15           file://tvout.png \   
16           file://usb.png \
17           file://wifi.png \
18           file://bt.png \
19           file://Pandora-Configtray.desktop \
20 "
21
22 SRCREV = "4cba5ccd41f759cea7b71167d38b7d9fc336da99"
23
24 S = "${WORKDIR}/git"
25
26 # disable environment-overrides
27 EXTRA_OEMAKE = "MAKEFLAGS="
28
29 do_install() {
30         install -d ${D}${bindir}/
31         install -m 0755 ${S}/configbutton ${D}${bindir}/
32         install -d ${D}${datadir}/configbutton/
33         install -m 0644 ${S}/plugin/bin/bluetooth.so ${D}${datadir}/configbutton/
34         install -m 0644 ${S}/plugin/bin/cpuspeed.so ${D}${datadir}/configbutton/
35         install -m 0644 ${S}/plugin/bin/tvout.so ${D}${datadir}/configbutton/
36         install -m 0644 ${S}/plugin/bin/usbhost.so ${D}${datadir}/configbutton/
37         install -m 0644 ${S}/plugin/bin/wifi.so ${D}${datadir}/configbutton/
38         install -m 0644 ${S}/plugin/bin/usbmass.so ${D}${datadir}/configbutton/
39         install -d ${D}${prefix}/share/icons/pandora/
40         install -m 0644 ${WORKDIR}/cpu.png ${D}${prefix}/share/icons/pandora/
41         install -m 0644 ${WORKDIR}/wifi.png ${D}${prefix}/share/icons/pandora/
42         install -m 0644 ${WORKDIR}/tvout.png ${D}${prefix}/share/icons/pandora/
43         install -m 0644 ${WORKDIR}/bt.png ${D}${prefix}/share/icons/pandora/
44         install -m 0644 ${WORKDIR}/usb.png ${D}${prefix}/share/icons/pandora/
45         install -d ${D}${sysconfdir}/skel/Applications/Settings/autostart/
46         install -m 0644 ${WORKDIR}/Pandora-Configtray.desktop ${D}${sysconfdir}/skel/Applications/Settings/autostart/Pandora-Configtray.desktop
47 }
48
49 PACKAGES =+ "${PN}-wifi"
50 PROVIDES += "${PN}-wifi"
51 FILES_${PN}-wifi = "${datadir}/configbutton/wifi.so ${datadir}/configbutton/bluetooth.so ${prefix}/share/icons/pandora/wifi.png ${prefix}/share/icons/pandora/bt.png"
52 FILES_${PN} += "${prefix} ${datadir}"