office/gnucash-docs: added PDF and EPUB to build options.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Lenard Spencer 2018-05-04 22:39:57 +07:00 committed by Willy Sudiarto Raharjo
parent e19633d4f0
commit 9537cbb890
3 changed files with 41 additions and 5 deletions

View File

@ -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.

View File

@ -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}

View File

@ -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"