diff options
Diffstat (limited to 'office/gnucash/gnucash.SlackBuild')
-rw-r--r-- | office/gnucash/gnucash.SlackBuild | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild index 973c487721..9113f8d68d 100644 --- a/office/gnucash/gnucash.SlackBuild +++ b/office/gnucash/gnucash.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#! /bin/sh # Slackware build script for gnucash # Copyright 2015 Trayan Denev, tdenev@gmail.com -# This version Copyright 2018 Lenard Spencer <lspencer31@cfl.rr.com> +# This version Copyright 2018 Lenard Spencer <lenardrspencer@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gnucash -VERSION=${VERSION:-3.9} +VERSION=${VERSION:-3.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -70,7 +70,7 @@ if [ -e /usr/bin/gnucash ]; then fi if [ "$DBI" = "yes" ]; then - DBIARGS="-DWITH_SQL=ON -DGNC_DBD_DIR=/usr/lib${LIBDIRSUFFIX}/dbd/ " + DBIARGS="-DWITH_SQL=ON -DGNC_DBD_DIR=/usr/lib${LIBDIRSUFFIX}/dbd/ -DGENERATE_SWIG_WRAPPERS=ON " echo " building with SQL integration enabled" sleep 1 else @@ -101,6 +101,9 @@ else W_PYTHON="-DWITH_PYTHON=OFF" fi +# New option to build with ninja: +NINJA=${NINJA:-"no"} + set -e rm -rf $PKG @@ -116,6 +119,13 @@ 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 [ $NINJA = "yes" ]; then + echo "building using Ninja:" + NINJABUILD="-GNinja" +else + NINJABUILD="" +fi + mkdir -p build cd build cmake \ @@ -125,16 +135,20 @@ cd build -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \ -DSYSCONFDIR=/etc \ -DCOMPILE_GSCHEMAS=OFF \ - -DCMAKE_HAVE_LIBC_PTHREAD=OFF \ $DBIARGS \ $W_PYTHON \ $OFXBANKING \ $AQBANKING \ - -DGNUCASH_BUILD_ID="$VERSION by $PACKAGER" \ + $NINJABUILD \ + -DGNUCASH_BUILD_ID="$VERSION-`date -I` by $PACKAGER" \ -DCMAKE_BUILD_TYPE=release .. -make -make -j1 install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION +if [ $NINJA = "yes" ]; then + DESTDIR="$PKG" ninja install +else + make + make -j1 install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION +fi 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 |