games/wesnoth: Remove NUMJOBS.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-02-27 18:26:52 +07:00 committed by Robby Workman
parent cdaf009574
commit 84514d9000

View file

@ -73,20 +73,6 @@ fi
set -e
if [ -z "$NUMJOBS" ]; then
# 20220221 bkw: everything else respects MAKEFLAGS, set NUMJOBS here
# from environment MAKEFLAGS, if we can...
NUMJOBS="$( echo $MAKEFLAGS | sed 's,.*-j *\([0-9][0-9]*\).*,\1,' )"
# ...if not, cores - 1:
[ -z "$NUMJOBS" ] && NUMJOBS=$(( $( nproc ) - 1 ))
# ...but not if we only had one core!
[ "$NUMJOBS" = "0" ] && NUMJOBS=1
fi
echo "=== NUMJOBS='$NUMJOBS'"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
@ -113,7 +99,6 @@ scons \
icondir=/usr/share/icons \
desktopdir=/usr/share/applications \
$OPT_SERVER \
jobs=${NUMJOBS} \
wesnoth wesnothd campaignd
scons install destdir=$PKG