3 DESCRIPTION = "A helpviewer based on gtk+webcore"
6 SRC_URI = "http://stag.mind.be/gpe-helpviewer-${PV}.tar.bz2"
9 RDEPENDS = "gpe-helpviewer-doc"
12 S = "${WORKDIR}/gpe-helpviewer"
17 install -d ${D}${docdir}/gpe
18 install -m 0644 ${S}/gpe-helpviewer.html ${D}${docdir}/gpe/
19 install -d ${D}/usr/share/applications
20 install -m 0644 ${S}/gpe-helpviewer.desktop ${D}/usr/share/applications/gpe-helpviewer.desktop
21 install -d ${D}/usr/share/pixmaps
22 install -m 0644 ${S}/gpe-help.png ${D}/usr/share/pixmaps/gpe-help.png
26 pkg_postinst_${PN}-doc () {
28 if [ "x$D" != "x" ]; then
29 if [ -e /etc/gpe/gpe-help.conf ]; then
30 echo gpe-helpviewer = /usr/share/doc/gpe/gpe-helpviewer.html >> /etc/gpe/gpe-help.conf
32 echo [Help] >> /etc/gpe/gpe-help.conf
33 echo gpe-helpviewer = /usr/share/doc/gpe/gpe-helpviewer.html >> /etc/gpe/gpe-help.conf
35 if [ -x /usr/bin/gpe-helpindex ]; then
36 echo generating help-index
39 echo not generating index for gpe-helpviewer
44 pkg_postrm_${PN}-doc () {
46 if [ "x$D" != "x" ]; then
47 if [ -e /etc/gpe/gpe-help.conf ]; then
48 sed '/^\<gpe-helpviewer\>/d' /etc/gpe/gpe-help.conf > /tmp/gpe-help.conf
49 mv /tmp/gpe-help.conf /etc/gpe/gpe-help.conf
51 if [ -x /usr/bin/gpe-helpindex ]; then
52 echo generating help-index
55 echo not generating index for gpe-helpviewer