games/rlvm: Remove NUMJOBS.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-02-27 18:26:07 +07:00 committed by Robby Workman
parent fd51c3fc72
commit cdaf009574
1 changed files with 1 additions and 15 deletions

View File

@ -57,20 +57,6 @@ SRC_FLDR=$PRGNAM-$VERSION/
set -e 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 -fr $TMP/$SRC_FLDR $PKG rm -fr $TMP/$SRC_FLDR $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
@ -92,7 +78,7 @@ SCONSFIX="$( find . -type f -a -name SCons\* )"
SCONSFIX+=" site_scons/site_tools/rlvm.py" SCONSFIX+=" site_scons/site_tools/rlvm.py"
2to3 --no-diffs -nw $SCONSFIX 2to3 --no-diffs -nw $SCONSFIX
scons --release jobs=$NUMJOBS scons --release
mkdir -p ${PKG}/usr/games ${PKG}/usr/bin mkdir -p ${PKG}/usr/games ${PKG}/usr/bin
cp build/release/rlvm $PKG/usr/games cp build/release/rlvm $PKG/usr/games