1 DESCRIPTION = "A helpviewer based on gtk+webcore"
4 RDEPENDS = "gpe-helpviewer-doc"
7 SRC_URI = "http://stag.mind.be/gpe-helpviewer-${PV}.tar.bz2"
9 S = "${WORKDIR}/gpe-helpviewer"
14 install -d ${D}${docdir}/gpe
15 install -m 0644 ${S}/gpe-helpviewer.html ${D}${docdir}/gpe/
16 install -d ${D}${datadir}/applications
17 install -m 0644 ${S}/gpe-helpviewer.desktop ${D}${datadir}/applications/gpe-helpviewer.desktop
18 install -d ${D}${datadir}/pixmaps
19 install -m 0644 ${S}/gpe-help.png ${D}${datadir}/pixmaps/gpe-help.png
23 pkg_postinst_${PN}-doc () {
25 if [ "x$D" != "x" ]; then
26 if [ -e ${sysconfdir}/gpe/gpe-help.conf ]; then
27 echo gpe-helpviewer = ${docdir}/gpe/gpe-helpviewer.html >> ${sysconfdir}/gpe/gpe-help.conf
29 echo [Help] >> ${sysconfdir}/gpe/gpe-help.conf
30 echo gpe-helpviewer = ${docdir}/gpe/gpe-helpviewer.html >> ${sysconfdir}/gpe/gpe-help.conf
32 if [ -x ${bindir}/gpe-helpindex ]; then
33 echo generating help-index
36 echo not generating index for gpe-helpviewer
41 pkg_postrm_${PN}-doc () {
43 if [ "x$D" != "x" ]; then
44 if [ -e ${sysconfdir}/gpe/gpe-help.conf ]; then
45 sed '/^\<gpe-helpviewer\>/d' ${sysconfdir}/gpe/gpe-help.conf > /tmp/gpe-help.conf
46 mv /tmp/gpe-help.conf ${sysconfdir}/gpe/gpe-help.conf
48 if [ -x ${bindir}/gpe-helpindex ]; then
49 echo generating help-index
52 echo not generating index for gpe-helpviewer