diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-07 22:21:52 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-08 09:46:12 +0700 |
commit | d625e2fe2237ddd5efba694d5449ea745f522210 (patch) | |
tree | e5bfb4250125af9e2dd8a409d4152e7d6746e9b2 /games | |
parent | 8b79c080a0355827856eb69cbb766be819a889b5 (diff) |
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>
Diffstat (limited to 'games')
-rw-r--r-- | games/uqm-megamod/uqm-megamod.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/uqm-megamod/uqm-megamod.SlackBuild b/games/uqm-megamod/uqm-megamod.SlackBuild index 223efaf11e186..faf64aa14a3b7 100644 --- a/games/uqm-megamod/uqm-megamod.SlackBuild +++ b/games/uqm-megamod/uqm-megamod.SlackBuild @@ -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 |