diff options
-rw-r--r-- | office/gnucash-docs/README | 5 | ||||
-rw-r--r-- | office/gnucash-docs/gnucash-docs.SlackBuild | 39 | ||||
-rw-r--r-- | office/gnucash-docs/gnucash-docs.info | 2 |
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" |