diff options
author | Lenard Spencer <lspencer31@cfl.rr.com> | 2018-05-04 22:39:57 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-05 06:46:30 +0700 |
commit | 9537cbb890edf8bad438d6dfb7da68ed086751e3 (patch) | |
tree | 77efbc6e8f1afcc1f2a99b5344659dacf279d7b8 /office/gnucash-docs/gnucash-docs.SlackBuild | |
parent | e19633d4f0ed88a81799b7721ecd0cdff5d9b0c7 (diff) |
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/gnucash-docs.SlackBuild')
-rw-r--r-- | office/gnucash-docs/gnucash-docs.SlackBuild | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/office/gnucash-docs/gnucash-docs.SlackBuild b/office/gnucash-docs/gnucash-docs.SlackBuild index 04a625696bf97..5b5e17c436626 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} |