summaryrefslogtreecommitdiff
path: root/office/gnucash-docs
diff options
context:
space:
mode:
authorLenard Spencer <lspencer31@cfl.rr.com>2018-05-04 22:39:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-05 06:46:30 +0700
commit9537cbb890edf8bad438d6dfb7da68ed086751e3 (patch)
tree77efbc6e8f1afcc1f2a99b5344659dacf279d7b8 /office/gnucash-docs
parente19633d4f0ed88a81799b7721ecd0cdff5d9b0c7 (diff)
downloadslackbuilds-9537cbb890edf8bad438d6dfb7da68ed086751e3.tar.gz
office/gnucash-docs: added PDF and EPUB to build options.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/gnucash-docs')
-rw-r--r--office/gnucash-docs/README5
-rw-r--r--office/gnucash-docs/gnucash-docs.SlackBuild39
-rw-r--r--office/gnucash-docs/gnucash-docs.info2
3 files changed, 41 insertions, 5 deletions
diff --git a/office/gnucash-docs/README b/office/gnucash-docs/README
index 7a76977da4..c4119d7e66 100644
--- a/office/gnucash-docs/README
+++ b/office/gnucash-docs/README
@@ -2,6 +2,11 @@ This is the documentation package for Gnucash.
This builds the internal help and user guides for Gnucash.
+For the EPUB help and user guides, pass EPUB="yes" to the script.
+
+For the PDF help and user guides, make sure fop is installed and
+ configured, and pass PDF="yes" to the script.
+
For the HTML help and user guides to read outside the Gnucash
application, pass HTML="yes" to the script.
diff --git a/office/gnucash-docs/gnucash-docs.SlackBuild b/office/gnucash-docs/gnucash-docs.SlackBuild
index 04a625696b..5b5e17c436 100644
--- a/office/gnucash-docs/gnucash-docs.SlackBuild
+++ b/office/gnucash-docs/gnucash-docs.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=gnucash-docs
DESTNAM=gnucash
VERSION=${VERSION:-2.6.20}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,9 +72,8 @@ make -j1 install DESTDIR=$PKG docdir=/usr/doc/$DESTNAM-$VERSION
# Build and install the HTML docs for the specified language (default to C)
-BUILDHTML=""
+
if [ "$HTML" = "yes" ]; then
- BUILDHTML="_html"
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION/html
cd guide/${DOCLANG:-C} || cd guide/C
echo "in `pwd`"
@@ -89,8 +88,40 @@ if [ "$HTML" = "yes" ]; then
cd ../..
fi
+if [ -x /opt/fop/fop ]; then
+ if [ "$PDF" = "yes" ]; then
+ mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
+ cd guide/${DOCLANG:-C} || cd guide/C
+ echo "in `pwd`"
+ sleep 2
+ make pdf
+ cp -vR gnucash-guide.pdf $PKG/usr/doc/$DESTNAM-$VERSION
+ cd ../../help/${DOCLANG:-C} || cd ../../help/C
+ echo "in `pwd`"
+ sleep 2
+ make pdf
+ cp -vR gnucash-help.pdf $PKG/usr/doc/$DESTNAM-$VERSION
+ cd ../..
+ fi
+fi
+
+if [ "$EPUB" = "yes" ]; then
+ mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
+ cd guide/${DOCLANG:-C} || cd guide/C
+ echo "in `pwd`"
+ sleep 2
+ make epub
+ cp -vR gnucash-guide.epub $PKG/usr/doc/$DESTNAM-$VERSION
+ cd ../../help/${DOCLANG:-C} || cd ../../help/C
+ echo "in `pwd`"
+ sleep 2
+ make epub
+ cp -vR gnucash-help.epub $PKG/usr/doc/$DESTNAM-$VERSION
+ cd ../..
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION$BUILDHTML-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/gnucash-docs/gnucash-docs.info b/office/gnucash-docs/gnucash-docs.info
index 4a7df398b9..45d920b37d 100644
--- a/office/gnucash-docs/gnucash-docs.info
+++ b/office/gnucash-docs/gnucash-docs.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://downloads.sourceforge.net/gnucash/gnucash-docs-2.6.20.tar.gz"
MD5SUM="b55a5a2d2486ec3e2c3b392bc397b822"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="gnucash webkit2gtk rarian yelp"
+REQUIRES="gnucash rarian yelp"
MAINTAINER="Lenard Spencer"
EMAIL="lspencer31@cfl.rr.com"