summaryrefslogtreecommitdiffstats
path: root/source/a/smartmontools
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/smartmontools')
-rwxr-xr-xsource/a/smartmontools/smartmontools.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/a/smartmontools/smartmontools.SlackBuild b/source/a/smartmontools/smartmontools.SlackBuild
index 17d1c48e9..7e0b554d9 100755
--- a/source/a/smartmontools/smartmontools.SlackBuild
+++ b/source/a/smartmontools/smartmontools.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2011, 2017, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2011, 2017, 2018, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -44,6 +44,8 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
+NUMJOBS=${NUMJOBS:-" -j $(expr $(nproc) + 1) "}
+
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
@@ -70,7 +72,7 @@ chown -R root:root .
--docdir=/usr/doc/smartmontools-$VERSION \
--build=$ARCH-slackware-linux || exit 1
-make || exit 1
+make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Don't use the included init script: