summaryrefslogtreecommitdiff
path: root/office/gnucash
diff options
context:
space:
mode:
Diffstat (limited to 'office/gnucash')
-rw-r--r--office/gnucash/README7
-rw-r--r--office/gnucash/gnucash.SlackBuild26
2 files changed, 3 insertions, 30 deletions
diff --git a/office/gnucash/README b/office/gnucash/README
index 4961760c5a..50543f2800 100644
--- a/office/gnucash/README
+++ b/office/gnucash/README
@@ -16,10 +16,3 @@ Pass WITHPYTHON="yes" to enable Python bindings for report gereration.
If you want the SQL database integration, you must first have libdbi
and libdbi-drivers installed and pass DBI="yes" to the build script.
-
-The script now incudes an option to build with ninja. To use this
-option, make sure ninja is installed and pass NINJA="yes" to the
-build script.
-
-NOTE: You must remove any previous installation of Gnucash before
-running this script, otherwise the build will most likely fail.
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index ac0d94e04f..1196dcf898 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -62,13 +62,6 @@ else
LIBDIRSUFFIX=""
fi
-# First, make sure a previous Gnucash installation is removed:
-if [ -e /usr/bin/gnucash ]; then
- echo "A previous Gnucash installation has been found."
- echo "Please remove it before running this script."
- exit 1
-fi
-
if [ "$DBI" = "yes" ]; then
DBIARGS="-DWITH_SQL=ON -DGNC_DBD_DIR=/usr/lib${LIBDIRSUFFIX}/dbd/"
echo " building with SQL integration enabled"
@@ -116,14 +109,6 @@ 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 {} \;
-# New option to build with ninja:
-if [ "${NINJA:-no}" = "yes" ]; then
- echo "building using Ninja:"
- NINJABUILD="-GNinja"
-else
- NINJABUILD=""
-fi
-
mkdir -p build
cd build
cmake \
@@ -137,16 +122,11 @@ cd build
$W_PYTHON \
$OFXBANKING \
$AQBANKING \
- $NINJABUILD \
+ -GNinja \
-DGNUCASH_BUILD_ID="$VERSION-`date -I` by $PACKAGER" \
-DCMAKE_BUILD_TYPE=release ..
-if [ $NINJA = "yes" ]; then
- DESTDIR="$PKG" ninja install
-else
- make
- make -j1 install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION
-fi
+DESTDIR="$PKG" ninja install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -155,7 +135,7 @@ mv $PKG/usr/share/man/ $PKG/usr/
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# Don't clobber these
+# Don't clobber this
mv $PKG/etc/gnucash/environment $PKG/etc/gnucash/environment.new
mkdir -p $PKG/usr/doc