diff options
author | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2017-06-07 15:43:32 -0700 |
commit | 6605296573e930fec5fdecd7536e71bbbdbe3fc8 (patch) | |
tree | e22608fdfdea7e605ba390835bea22aa78f4d4a8 | |
parent | d8384979623dd3a2e4760442a4a272ae3e2b5cce (diff) | |
download | aur-6605296573e930fec5fdecd7536e71bbbdbe3fc8.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 -# Wed Mar 8 20:26:49 UTC 2017 +# Wed Jun 7 22:36:19 UTC 2017 pkgbase = libbitcoin-network-git pkgdesc = Bitcoin P2P Network Library pkgver = 20170307 - pkgrel = 2 + pkgrel = 3 url = https://github.com/libbitcoin/libbitcoin-network arch = i686 arch = x86_64 @@ -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() { |