diff options
author | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
commit | c76cf1854f134e06bc251745641e75c7928d4eb7 (patch) | |
tree | c87edd130b8f0f2de379757f22d7e93494304106 | |
parent | 5b7137226c0b06841289955172d52b8ad7bfbb5f (diff) | |
download | aur-c76cf1854f134e06bc251745641e75c7928d4eb7.tar.gz |
increment pkgrel; fix make -j for nproc=1
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Fri Mar 10 03:45:45 UTC 2017 +# Wed Jun 7 22:36:19 UTC 2017 pkgbase = libbitcoin-node-git pkgdesc = Bitcoin Full Node pkgver = 20170307 - pkgrel = 4 + pkgrel = 5 url = https://github.com/libbitcoin/libbitcoin-node install = bn.install arch = i686 @@ -2,7 +2,7 @@ pkgname=libbitcoin-node-git pkgver=20170307 -pkgrel=4 +pkgrel=5 pkgdesc="Bitcoin Full Node" arch=('i686' 'x86_64') depends=('boost' @@ -42,6 +42,10 @@ backup=('etc/obelisk/bn/bn.cfg' 'etc/logrotate.d/bn') install=bn.install +# 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" @@ -78,14 +82,14 @@ build() { --localstatedir=/var/lib/libbitcoin-node \ --with-bash-completiondir=/usr/share/bash-completion/completions \ --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() { |