subapplet: added postinst/postrm actions
authorMarcin Juszkiewicz <hrw@openembedded.org>
Wed, 15 Sep 2004 14:45:28 +0000 (14:45 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Wed, 15 Sep 2004 14:45:28 +0000 (14:45 +0000)
BKrev: 41485588BbXG4mdbATO2XzoG5sIntw

subapplet/subapplet_1.0.8.oe

index eb786d8..cf77599 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "base"
 PRIORITY = "optional"
 LICENSE = "GPL"
 MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/subapplet/subapplet-1.0.8.tar.gz"
 
@@ -18,3 +18,19 @@ do_install() {
     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
+}