Merge branch 'opendreambox' of git://git.opendreambox.org/git/openembedded into opend...
[openembedded.git] / recipes / opie-cardapplet / opie-cardapplet.inc
1 DESCRIPTION = "CF/SD/PCMCIA Card Monitor applet"
2 SECTION = "opie/applets"
3 PRIORITY = "optional"
4 LICENSE = "GPL"
5 APPNAME = "cardapplet"
6 I18N_FILES = "libcardapplet.ts"
7
8
9 S = "${WORKDIR}/cardapplet"
10
11 inherit opie
12
13 pkg_postinst() {
14 #!/bin/sh
15 if pidof -s qpe >/dev/null; then
16   /usr/bin/qcop QPE/TaskBar "reloadApplets()"
17 fi
18  if [ -n "$D" ]; then false; fi
19 }
20
21 pkg_postrm() {
22 #!/bin/sh
23 /usr/bin/qcop QPE/TaskBar "reloadApplets()"
24  if [ -n "$D" ]; then false; fi
25 }
26
27 # FILES plugins/applets/libcardapplet.so* pics/cardmon/*.png sounds/cardmon/*.wav etc/opie-pcmcia.*
28 do_install() {
29         install -d ${D}${palmtopdir}/pics/cardmon/
30         install -d ${D}${palmtopdir}/sounds/cardmon/
31         install -d ${D}${sysconfdir}/udev/rules.d/
32         install -d ${D}${sysconfdir}/udev/scripts/
33         install -m 0644 ${WORKDIR}/pics/cardmon/*.png ${D}${palmtopdir}/pics/cardmon/
34         install -m 0644 ${WORKDIR}/sounds/cardmon/*.wav ${D}${palmtopdir}/sounds/cardmon/
35         install -m 0644 ${WORKDIR}/etc/opie-pcmcia.rules ${D}${sysconfdir}/udev/rules.d/opie-pcmcia.rules
36         install -m 0755 ${WORKDIR}/etc/opie-pcmcia.sh ${D}${sysconfdir}/udev/scripts/opie-pcmcia.sh
37 }
38