academic/Gridcoin-Research: Use MAKEFLAGS to pass numjobs.

We only hardcode -j1 if a build cannot work with multiple jobs,
otherwise rely on MAKEFLAGS.

https://idlemoor.gitlab.io/2016/09/15/Builds-that-need-j1.html

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-27 10:56:58 +01:00 committed by Robby Workman
parent 250624dadd
commit 22d558c18e

View file

@ -29,7 +29,6 @@ VERSION=${VERSION:-5.3.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
NUMJOBS=${NUMJOBS:-1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -108,7 +107,7 @@ CXXFLAGS="$SLKCFLAGS" \
$usepnp \
--build=$ARCH-slackware-linux
make -j${NUMJOBS}
make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \