summaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-08-03 16:05:06 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-07 10:28:42 +0700
commitf15ef59048b8251ea5feb2c4adaab9e10a3c8a9c (patch)
treebb790df808aa32e3e4a95b12f452257079df1805 /office
parentfbeac5a88ed0e592858962d8a2a83597ee43c384 (diff)
downloadslackbuilds-f15ef59048b8251ea5feb2c4adaab9e10a3c8a9c.tar.gz
office/gnucash: Use NINJA=ninja by default.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/gnucash/gnucash.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index 115dce6f04..6dccbd42bc 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -119,7 +119,7 @@ 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 {} \;
- mkdir -p build
+mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -136,7 +136,9 @@ cd build
-DGNUCASH_BUILD_ID="$VERSION-`date -I` by $PACKAGER" \
-DCMAKE_BUILD_TYPE=release ..
-DESTDIR="$PKG" $NINJA install
+ "${NINJA:=ninja}"
+ DESTDIR="$PKG" $NINJA install
+cd ..
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