office/gnucash: Use NINJA=ninja by default.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-08-03 16:05:06 +02:00 committed by Willy Sudiarto Raharjo
parent fbeac5a88e
commit f15ef59048
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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