diff options
Diffstat (limited to 'office/gnucash/gnucash.SlackBuild')
-rw-r--r-- | office/gnucash/gnucash.SlackBuild | 26 |
1 files changed, 3 insertions, 23 deletions
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 |