games/uqm-megamod: Fix build with MAKEFLAGS.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-03-07 22:21:52 +13:00 committed by Willy Sudiarto Raharjo
parent 8b79c080a0
commit d625e2fe22
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -81,7 +81,8 @@ sh build.sh uqm reprocess_config
# use our flags:
sed -i "s/-O3/$SLKCFLAGS/g" build.vars
sh build.sh uqm $MAKEFLAGS
# extract only -jNUM from MAKEFLAGS, any other flags, like -lNUM will break the build.
sh build.sh uqm $(printf '%s\n' "$MAKEFLAGS" | grep -o -e '-j[0-9]\+' | head -n 1)
mkdir -p $PKG/usr/games
install -s -m0755 UrQuanMasters $PKG/usr/games/$PRGNAM