jack: do not set JOBS if MAKEFLAGS has no jobs defined #1334

This commit is contained in:
Danny Rawlins 2016-09-25 20:06:02 +10:00
parent f19f8af96c
commit 814bb0e172

View File

@ -12,12 +12,13 @@ source=(https://dl.dropboxusercontent.com/u/28869550/$name-$version.tar.bz2)
build() {
cd $name-$version
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
local JOBS=-j$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
[ $JOBS = '-j' ] && unset JOBS
./waf configure \
--prefix=/usr \
--alsa
./waf build -j$JOBS
./waf build $JOBS
./waf install --destdir=$PKG
}