aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/subapplet/subapplet_1.0.8.bb
blob: 9adb81637a579febd393f846ab5f21085d9faf8b (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
38
39
40
41
42
43
DESCRIPTION = "Applet for the Qtopia environment taskbar that provides an extension panel \
for the taskbar that let's you load lot's of applet's without taking up space \
in the normal taskbar."
SECTION = "opie/applets"
LICENSE = "GPLv2+"
HOMEPAGE = "http://sourceforge.net/projects/subapplet/"
PR = "r7"

SRC_URI = "${SOURCEFORGE_MIRROR}/subapplet/subapplet-1.0.8.tar.gz \
	file://toolbar-resize-fix.patch"

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

LIC_FILES_CHKSUM = "file://subapplet.cpp;beginline=7;endline=19;md5=e83a46579dfd50db1e6649c247a7cf09"

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/opt/QtPalmtop/plugins/applets libsubapplet ${D}${palmtopdir}/plugins/applets/
}

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

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

SRC_URI[md5sum] = "6042daa703d8bd34174b195843e7ffaa"
SRC_URI[sha256sum] = "4cc4cc703bcd4da0df25e7b87b082bd9d1c836868bc4641b3c960931582dc3d2"