73d229e43ebff1e7f2e87456a57b53191d780397
[openpandora.oe.git] / recipes / pandora-system / pandora-pndstore.bb
1 DESCRIPTION = "Download and upgrade PND packages."
2 LICENSE = "GPLv2"
3
4 PR = "r4"
5
6 SRC_URI = " \
7           git://github.com/Tempel/PNDstore.git;protocol=git;branch=master \
8           file://_ctypes.so \
9           file://op_pndstore.desktop \
10 "
11
12 SRCREV = "af118e0619e58716ef58"
13
14 S = "${WORKDIR}/git"
15
16 do_install() {
17           install -d ${D}${prefix}/pandora/scripts/pndstore/
18           install -m 0775 ${S}/PNDstore ${D}${prefix}/pandora/scripts/pndstore/PNDstore
19           install -m 0775 ${S}/pndst ${D}${prefix}/pandora/scripts/pndstore/pndst
20           install -m 0644 ${S}/README.rst ${D}${prefix}/pandora/scripts/pndstore/README.rst
21           install -m 0644 ${WORKDIR}/_ctypes.so ${D}${prefix}/pandora/scripts/pndstore/_ctypes.so
22
23           install -d 0775 ${D}${prefix}/pandora/scripts/pndstore/pndstore_gui 
24           install -m 0775 ${S}/pndstore_gui/PNDstore.glade ${D}${prefix}/pandora/scripts/pndstore/pndstore_gui/PNDstore.glade
25           install -m 0775 ${S}/pndstore_gui/__init__.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_gui/__init__.py
26             
27           install -d 0775 ${D}${prefix}/pandora/scripts/pndstore/pndstore_core
28           install -m 0775 ${S}/pndstore_core/__init__.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/__init__.py
29           install -m 0775 ${S}/pndstore_core/database_update.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/database_update.py
30           install -m 0775 ${S}/pndstore_core/libpnd.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/libpnd.py
31           install -m 0775 ${S}/pndstore_core/options.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/options.py
32           install -m 0775 ${S}/pndstore_core/packages.py ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/packages.py
33
34           install -d 0775 ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/cfg
35           install -m 0775 ${S}/pndstore_core/cfg/default.cfg ${D}${prefix}/pandora/scripts/pndstore/pndstore_core/cfg/default.cfg
36
37           install -d ${D}${datadir}/applications/
38           install -m 0644 ${WORKDIR}/op_pndstore.desktop ${D}${datadir}/applications/
39
40           install -d ${D}${datadir}/pixmaps/
41           install -m 0644 ${S}/resources/icon.png ${D}${datadir}/pixmaps/
42
43 }
44
45 PACKAGE_ARCH = "${MACHINE_ARCH}"
46
47 FILES_${PN} += "${prefix} ${datadir}"