summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-06-07 15:43:32 -0700
committerAndy Weidenbaum2017-06-07 15:43:32 -0700
commit1c9a4ea0a7ffa1f46fa9aad94dac82b76e436842 (patch)
treeb442cbb703c52d7e1dcbc481944e3e5d9213697e
parent668a7bdae9cb1194f324436884930aa0a446758f (diff)
downloadaur-1c9a4ea0a7ffa1f46fa9aad94dac82b76e436842.tar.gz
increment pkgrel; fix make -j for nproc=1
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce8d8322467..f163725f5c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue May 2 15:53:01 UTC 2017
+# Wed Jun 7 22:36:19 UTC 2017
pkgbase = libbitcoin-system
pkgdesc = Bitcoin Cross-Platform C++ Development Toolkit
pkgver = 3.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/libbitcoin/libbitcoin
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 3cbdb884cda..d65af324424 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=libbitcoin-system
pkgver=3.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Bitcoin Cross-Platform C++ Development Toolkit"
arch=('i686' 'x86_64')
depends=('boost'
@@ -31,6 +31,10 @@ sha256sums=('f10cea6b505ec0eb6b64382ce26c95c2437982fa751a1b7d5c3c7989f9ad5ea6'
provides=('libbitcoin' 'libbitcoin-system')
conflicts=('libbitcoin')
+# half of available processing units or one if only one is available
+_nproc=$(($(nproc)/2))
+[[ ${_nproc} < 1 ]] && _nproc=1
+
build() {
cd "$srcdir/libbitcoin-$pkgver"
@@ -48,14 +52,14 @@ build() {
--with-qrencode \
--with-gnu-ld \
--without-examples
- make -j$(($(nproc)/2))
+ make -j$_nproc
}
check() {
cd "$srcdir/libbitcoin-$pkgver"
msg2 'Testing...'
- make -j$(($(nproc)/2)) check
+ make -j$_nproc check
}
package() {