mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
games/wesnoth: Remove NUMJOBS.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
cdaf009574
commit
84514d9000
1 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue