summaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorLenard Spencer <lspencer31@cfl.rr.com>2018-05-04 22:41:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-05 06:46:31 +0700
commit94d77ad27f657f867881f3e9bf370de420f5ce63 (patch)
treeb6af59f4b054b6988cd36f553b5ee651f665d179 /office
parent9537cbb890edf8bad438d6dfb7da68ed086751e3 (diff)
downloadslackbuilds-94d77ad27f657f867881f3e9bf370de420f5ce63.tar.gz
office/gnucash3-docs: Updated for version 3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/gnucash3-docs/README8
-rw-r--r--office/gnucash3-docs/gnucash3-docs.SlackBuild38
-rw-r--r--office/gnucash3-docs/gnucash3-docs.info6
3 files changed, 45 insertions, 7 deletions
diff --git a/office/gnucash3-docs/README b/office/gnucash3-docs/README
index b9695a7c67..a66d0abd96 100644
--- a/office/gnucash3-docs/README
+++ b/office/gnucash3-docs/README
@@ -5,6 +5,14 @@ This builds the internal help and user guides for Gnucash3.
For the HTML help and user guides to read outside the Gnucash3
application, pass HTML="yes" to the script.
+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.
+
+After installation, HTML, EPUB, and PDF documentation can be found
+in /usr/doc/gnucash-$VERSION.
+
For a specific language, pass DOCLANG="xx", where xx is:
C for English (default)
de for German
diff --git a/office/gnucash3-docs/gnucash3-docs.SlackBuild b/office/gnucash3-docs/gnucash3-docs.SlackBuild
index df46b9e512..6981c28cba 100644
--- a/office/gnucash3-docs/gnucash3-docs.SlackBuild
+++ b/office/gnucash3-docs/gnucash3-docs.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=gnucash3-docs
DESTNAM=gnucash
-VERSION=${VERSION:-3.0}
+VERSION=${VERSION:-3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,9 +72,7 @@ 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 +87,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/gnucash3-docs/gnucash3-docs.info b/office/gnucash3-docs/gnucash3-docs.info
index 648f432691..38398b7bab 100644
--- a/office/gnucash3-docs/gnucash3-docs.info
+++ b/office/gnucash3-docs/gnucash3-docs.info
@@ -1,8 +1,8 @@
PRGNAM="gnucash3-docs"
-VERSION="3.0"
+VERSION="3.1"
HOMEPAGE="http://www.gnucash.org"
-DOWNLOAD="http://downloads.sourceforge.net/gnucash/gnucash-docs-3.0.tar.gz"
-MD5SUM="eca6089d3feacde503981cfbd2917735"
+DOWNLOAD="http://downloads.sourceforge.net/gnucash/gnucash-docs-3.1.tar.gz"
+MD5SUM="228cec2e05fa961347c0330ac814368a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gnucash3 rarian yelp"