diff options
author | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
commit | e6a663c904cc04f82a66cba3ed6bb4d5c4182309 (patch) | |
tree | add918c65d5c8a47314e1e55b5a7fa95a58de833 | |
parent | b6565f40a2bb395dc1f60b9160287a9d7ee82280 (diff) | |
download | aur-e6a663c904cc04f82a66cba3ed6bb4d5c4182309.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 -# Tue May 2 15:53:07 UTC 2017 +# Wed Jun 7 22:36:19 UTC 2017 pkgbase = libbitcoin-server pkgdesc = Bitcoin Full Node and Query Server pkgver = 3.2.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/libbitcoin/libbitcoin-server install = bs.install arch = i686 @@ -2,7 +2,7 @@ pkgname=libbitcoin-server pkgver=3.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="Bitcoin Full Node and Query Server" arch=('i686' 'x86_64') depends=('boost' @@ -44,6 +44,10 @@ backup=('etc/obelisk/bs/bs.cfg' 'etc/logrotate.d/bs') install=bs.install +# half of available processing units or one if only one is available +_nproc=$(($(nproc)/2)) +[[ ${_nproc} < 1 ]] && _nproc=1 + prepare() { cd "$srcdir/$pkgname-$pkgver" @@ -75,14 +79,14 @@ build() { --localstatedir=/var/lib/libbitcoin-server \ --with-bash-completiondir=/usr/share/bash-completion/completions \ --with-gnu-ld - make -j$(($(nproc)/2)) + make -j$_nproc } check() { cd "$srcdir/$pkgname-$pkgver" msg2 'Testing...' - make -j$(($(nproc)/2)) check + make -j$_nproc check } package() { |