diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4,7 +4,7 @@ pkgname=libbitcoin-network-git pkgver=20170307 -pkgrel=2 +pkgrel=3 pkgdesc="Bitcoin P2P Network Library" arch=('i686' 'x86_64') depends=('boost' @@ -28,6 +28,10 @@ sha256sums=('SKIP') provides=('libbitcoin-network') conflicts=('libbitcoin-network') +# half of available processing units or one if only one is available +_nproc=$(($(nproc)/2)) +[[ ${_nproc} < 1 ]] && _nproc=1 + pkgver() { cd ${pkgname%-git} git log -1 --format="%cd" --date=short | sed "s|-||g" @@ -46,14 +50,14 @@ build() { --sharedstatedir=/usr/share/libbitcoin-network \ --localstatedir=/var/lib/libbitcoin-network \ --with-gnu-ld - make -j$(($(nproc)/2)) + make -j$_nproc } check() { cd ${pkgname%-git} msg2 'Testing...' - make -j$(($(nproc)/2)) check + make -j$_nproc check } package() { |