summaryrefslogtreecommitdiff
path: root/subapplet/subapplet_1.0.8.oe
blob: c8e3a9b925435dc7f188edf27622db7a6beabf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
DESCRIPTION = "A secondary system tray for those people who like having a lot of applets loaded at once."
SECTION = "opie/applets"
PRIORITY = "optional"
LICENSE = "GPL"
MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
HOMEPAGE = "http://sourceforge.net/projects/subapplet/"
PR = "r3"

SRC_URI = "${SOURCEFORGE_MIRROR}/subapplet/subapplet-1.0.8.tar.gz"

S = "${WORKDIR}/SubApplet-1.0.8"

inherit palmtop

QMAKE_PROFILES = "subapplet.pro"

do_install() {
    install -d ${D}/${palmtopdir}/plugins/applets ${D}/${palmtopdir}/pics/subapplet/
    install -m 0644 *.png ${D}/${palmtopdir}/pics/subapplet/
    oe_libinstall -so -C rel${palmtopdir}/plugins/applets libsubapplet ${D}/${palmtopdir}/plugins/applets/
}

pkg_postinst() {
#!/bin/sh
if pidof -s qpe >/dev/null; then
  /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()"
else
  exit 0
fi
 if [ -n "$D" ]; then false; fi
}

pkg_postrm() {
#!/bin/sh
/opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()"
 if [ -n "$D" ]; then false; fi
}