summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-06-07 15:43:32 -0700
committerAndy Weidenbaum2017-06-07 15:43:32 -0700
commite6a663c904cc04f82a66cba3ed6bb4d5c4182309 (patch)
treeadd918c65d5c8a47314e1e55b5a7fa95a58de833
parentb6565f40a2bb395dc1f60b9160287a9d7ee82280 (diff)
downloadaur-e6a663c904cc04f82a66cba3ed6bb4d5c4182309.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 b766686b291..25005fa65cb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 377b7ff68f6..cdd90b97e91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {