4dabc4c5c0c01e104e5e4c40f0a1c0674ea04838
[vuplus_openembedded] / shopper / shopper_1.2.0.oe
1 DESCRIPTION = "Shopping list manager"
2 SECTION = "Applications"
3 PRIORITY = "optional"
4 MAINTAINER = "David Greaves <arbor@users.sourceforge.net>"
5 LICENSE = "GPL"
6 RDEPENDS = "libqpe1"
7 DEPENDS = "virtual/libc"
8
9 SRC_URI = "${SOURCEFORGE_MIRROR}/zaurus-shopper/Shopper-${PV}.tar.gz \
10            file://${FILESDIR}/gcc3.patch;patch=1"
11 S = "${WORKDIR}/Shopper"
12
13 inherit palmtop
14
15 QMAKE_PROFILES = "Shopper.pro"
16
17 pkg_preinst() {
18         cp /root/Applications/ShoppingListQt/shoppinglist.xml /root/Applications/ShoppingListQt/shoppinglist.xml.safe 2>/dev/null
19         true
20 }
21
22 pkg_postinst() {
23         /opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" 2>/dev/null
24         true
25 }
26
27 do_install() {
28         install -d ${D}${palmtopdir}/{help/html/,bin,apps/Applications,pics}
29         install -d ${D}/root/Applications/ShoppingListQt/
30         install -m 0755 ${S}/Shopper ${D}${palmtopdir}/bin/
31         install -m 0644 ${S}/Shopper.desktop ${D}${palmtopdir}/apps/Applications/
32         install -m 0644 ${S}/Shopper.png ${D}${palmtopdir}/pics/
33         install -m 0644 ${S}/Shopper.html ${D}${palmtopdir}/help/html/
34         install -m 0644 ${S}/shoppinglist.xml ${D}/root/Applications/ShoppingListQt/shoppinglist.xml.new
35 }