diff options
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 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} |