aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-07-08 22:28:08 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-09 10:06:08 +0700
commit7800e28d91e6ab4cc69e83740d4b43ab743112bf (patch)
treeebcf9fddff177b255f9e959c748f13f82075ecb7 /office
parentf3a96c932d384070faf87409462761834a9db3ab (diff)
office/gnucash-docs: Updated for version 4.11.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/gnucash-docs/README9
-rw-r--r--office/gnucash-docs/gnucash-docs.SlackBuild36
-rw-r--r--office/gnucash-docs/gnucash-docs.info6
3 files changed, 34 insertions, 17 deletions
diff --git a/office/gnucash-docs/README b/office/gnucash-docs/README
index 0a983f77287e..87d6c20c04b7 100644
--- a/office/gnucash-docs/README
+++ b/office/gnucash-docs/README
@@ -5,12 +5,17 @@ This builds the internal help and user guides for Gnucash.
For the HTML help and user guides to read outside of the Gnucash
application, pass HTML="yes" to the script.
-For the EPUB help and user guides, pass EPUB="yes" to the script.
+For the epub help and user guides, pass EPUB="yes" to the script.
+
+For the mobi (Amazon Kindle) help and user guides, make sure
+ calibre-bin is installed, and pass MOBI="yes" to the script.
+ (Note: mobi is generated from epub, so this generates epub files
+ as well.)
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
+After installation, HTML, EPUB, MOBI and PDF documentation can be found
in /usr/doc/gnucash-$VERSION.
For a specific language, pass DOCLANG="xx", where xx is:
diff --git a/office/gnucash-docs/gnucash-docs.SlackBuild b/office/gnucash-docs/gnucash-docs.SlackBuild
index 9eed9104d4b0..cab82e5ef068 100644
--- a/office/gnucash-docs/gnucash-docs.SlackBuild
+++ b/office/gnucash-docs/gnucash-docs.SlackBuild
@@ -25,8 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnucash-docs
-DESTNAM=gnucash
-VERSION=${VERSION:-4.10.1}
+VERSION=${VERSION:-4.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -63,35 +62,48 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+if [ "${MOBI:-no}" = "yes" ]; then
+ WITHMOBI="-DWITH_MOBI=ON"
+else
+ WITHMOBI=""
+fi
+
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
+ $WITHMOBI \
-DCMAKE_BUILD_TYPE=Release ..
make
if [ "${HTML:-no}" = "yes" ]; then
- make html
+ make $DOCLANG-gnucash-guide-html || make C-gnucash-guide-html
+ make $DOCLANG-gnucash-help-html || make C-gnucash-help-html
fi
- if [ "${EPUB:-no}" = "yes" ]; then
- make epub
+ if [ "$MOBI" = "yes" ]; then
+ make $DOCLANG-gnucash-guide-mobi || make C-gnucash-guide-mobi
+ make $DOCLANG-gnucash-help-mobi || make C-gnucash-help-mobi
+ elif [ "${EPUB:-no}" = "yes" ]; then
+ make $DOCLANG-gnucash-guide-epub || make C-gnucash-guide-epub
+ make $DOCLANG-gnucash-help-epub || make C-gnucash-help-epub
fi
if [ "${PDF:-no}" = "yes" ]; then
- make pdf
+ make $DOCLANG-gnucash-guide-pdf || make C-gnucash-guide-pdf
+ make $DOCLANG-gnucash-help-pdf || make C-gnucash-help-pdf
fi
make install DESTDIR=$PKG
# Move the files to where they belong:
- mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
- cp -Rv share/doc/$DOCLANG/* $PKG/usr/doc/$DESTNAM-$VERSION
+ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+ cp -Rv share/doc/$DOCLANG/* $PKG/usr/doc/$PRGNAM-$VERSION
+ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# There is no help system for Japanese, so:
if [ "$DOCLANG" = "ja" ]; then
- cp -Rv share/doc/C/gnucash-help* $PKG/usr/doc/$DESTNAM-$VERSION
+ cp -Rv share/doc/C/gnucash-help* $PKG/usr/doc/$PRGNAM-$VERSION
fi
- mv $PKG/usr/share/$PRGNAM $PKG/usr/doc
- mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
+ mv $PKG/usr/share/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
# get rid of unused folders:
- rm -rf $PKG/usr/share/doc
+ rm -rf $PKG/usr/share/{$PRGNAM,doc}
cd ..
mkdir -p $PKG/install
diff --git a/office/gnucash-docs/gnucash-docs.info b/office/gnucash-docs/gnucash-docs.info
index 11380a2cab4e..b4ca5038df2b 100644
--- a/office/gnucash-docs/gnucash-docs.info
+++ b/office/gnucash-docs/gnucash-docs.info
@@ -1,8 +1,8 @@
PRGNAM="gnucash-docs"
-VERSION="4.10.1"
+VERSION="4.11"
HOMEPAGE="https://www.gnucash.org"
-DOWNLOAD="https://downloads.sourceforge.net/gnucash/gnucash-docs-4.10.1.tar.gz"
-MD5SUM="0b50c8fd01a296e1999298f2f92b5b0b"
+DOWNLOAD="https://downloads.sourceforge.net/gnucash/gnucash-docs-4.11.tar.gz"
+MD5SUM="4fd7d4e6cb5ef18fb3e54dc623dd76f6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gnucash rarian yelp"