summaryrefslogtreecommitdiff
path: root/office/gnucash-docs/gnucash-docs.SlackBuild
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/gnucash-docs/gnucash-docs.SlackBuild
parentf3a96c932d384070faf87409462761834a9db3ab (diff)
downloadslackbuilds-7800e28d91e6ab4cc69e83740d4b43ab743112bf.tar.gz
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/gnucash-docs/gnucash-docs.SlackBuild')
-rw-r--r--office/gnucash-docs/gnucash-docs.SlackBuild36
1 files changed, 24 insertions, 12 deletions
diff --git a/office/gnucash-docs/gnucash-docs.SlackBuild b/office/gnucash-docs/gnucash-docs.SlackBuild
index 9eed9104d4..cab82e5ef0 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