Browse Source

office/gnucash-docs: Updated for version 4.9.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/186/head
Lenard Spencer 4 years ago
committed by Willy Sudiarto Raharjo
parent
commit
e80cdf0c7a
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 8
      office/gnucash-docs/README
  2. 71
      office/gnucash-docs/gnucash-docs.SlackBuild
  3. 10
      office/gnucash-docs/gnucash-docs.info
  4. 2
      office/gnucash-docs/slack-desc

8
office/gnucash-docs/README

@ -19,12 +19,10 @@ de for German
it for Italian
pt for Portugese
ja for Japanese (guide only, no help - defaults to C)
ru for Russian (guide only, no help - defaults to C)
NOTE: the Russian translation has been dropped
Note 1: This script builds the internal guides in all available
Note: This script builds the internal guides in all available
languages, but the HTML guides are only in the spacified language
to save space and avoid excessive package bloat.
Note 2: This builds the docs for version 4.x of Gnucash. If you
need the old stable 2.6 branch, use gnucash-legacy-docs, also
available on SBo.
Runtime dependencies are yelp and rarian.

71
office/gnucash-docs/gnucash-docs.SlackBuild

@ -2,7 +2,7 @@
# Slackware build script for gnucash-docs
# Copyright 2018, 2019, 2020 Lenard Spencer <lenardrspencer@gmail.com>
# Copyright 2018, 2019, 2020,2021 Lenard Spencer <lenardrspencer@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnucash-docs
DESTNAM=gnucash
VERSION=${VERSION:-4.5}
VERSION=${VERSION:-4.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -46,8 +46,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
ARCH=noarch # does not install any binary files
DOCLANG=${DOCLANG:-"C"}
set -e
@ -65,49 +63,36 @@ 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 {} \;
./configure \
--prefix=/usr \
--docdir=/usr/doc/$DESTNAM-$VERSION
make
make -j1 install DESTDIR=$PKG docdir=/usr/doc/$DESTNAM-$VERSION
# Build and install the HTML docs for the specified language (default to C)
if [ "$HTML" = "yes" ]; then
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION/html
cd guide/$DOCLANG || cd guide/C
make html
cp -vR gnucash-guide $PKG/usr/doc/$DESTNAM-$VERSION/html
cd ../../help/$DOCLANG || cd ../../help/C
make html
cp -vR gnucash-help $PKG/usr/doc/$DESTNAM-$VERSION/html
cd ../..
fi
if [ -x /opt/fop/fop ]; then
if [ "$PDF" = "yes" ]; then
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
cd guide/$DOCLANG || cd guide/C
make pdf
cp -vR gnucash-guide.pdf $PKG/usr/doc/$DESTNAM-$VERSION
cd ../../help/$DOCLANG || cd ../../help/C
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
if [ "${HTML:-no}" = "yes" ]; then
make html
fi
if [ "${EPUB:-no}" = "yes" ]; then
make epub
fi
if [ "${PDF:-no}" = "yes" ]; then
make pdf
cp -vR gnucash-help.pdf $PKG/usr/doc/$DESTNAM-$VERSION
cd ../..
fi
fi
if [ "$EPUB" = "yes" ]; then
make install DESTDIR=$PKG
# Move the files to where they belong:
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
cd guide/$DOCLANG || cd guide/C
make epub
cp -vR gnucash-guide.epub $PKG/usr/doc/$DESTNAM-$VERSION
cd ../../help/$DOCLANG || cd ../../help/C
make epub
cp -vR gnucash-help.epub $PKG/usr/doc/$DESTNAM-$VERSION
cd ../..
fi
cp -Rv share/doc/$DOCLANG/* $PKG/usr/doc/$DESTNAM-$VERSION
# There is no help system for Japanese, so:
if [ "$DOCLANG" = "ja" ]; then
cp -Rv share/doc/C/gnucash-help* $PKG/usr/doc/$DESTNAM-$VERSION
fi
mv $PKG/usr/share/$PRGNAM $PKG/usr/doc
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
# get rid of unused folders:
rm -rf $PKG/usr/share/doc
cd ..
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

10
office/gnucash-docs/gnucash-docs.info

@ -1,10 +1,10 @@
PRGNAM="gnucash-docs"
VERSION="4.5"
HOMEPAGE="http://www.gnucash.org"
DOWNLOAD="http://downloads.sourceforge.net/gnucash/gnucash-docs-4.5.tar.gz"
MD5SUM="cb619592f5ac25e2d1d1312c1a43e32d"
VERSION="4.9"
HOMEPAGE="https://www.gnucash.org"
DOWNLOAD="https://downloads.sourceforge.net/gnucash/gnucash-docs-4.9.tar.gz"
MD5SUM="6584ed80f0088f3c04822b6fcbf05132"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gnucash yelp"
REQUIRES="gnucash rarian yelp"
MAINTAINER="Lenard Spencer"
EMAIL="lenardrspencer@gmail.com"

2
office/gnucash-docs/slack-desc

@ -8,7 +8,7 @@
|-----handy-ruler------------------------------------------------------|
gnucash-docs: gnucash-docs (Gnucash help and user guides)
gnucash-docs:
gnucash-docs: Documentation files for Gnucash 3.x
gnucash-docs: Documentation files for Gnucash 4.x
gnucash-docs:
gnucash-docs: http://www.gnucash.org
gnucash-docs:

Loading…
Cancel
Save