summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2017-06-07 15:43:32 -0700
committerAndy Weidenbaum2017-06-07 15:43:32 -0700
commitdc6e20bd81dea622365d70b745201aaac473a89a (patch)
tree6a102287788f68ed5dac7c2a77a79f874c817a6e
parent951b83e3d7453fb664876e97ae1a5f49c53c0346 (diff)
downloadaur-dc6e20bd81dea622365d70b745201aaac473a89a.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 f9d099f6c3d..7ec297c7f8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Fri Mar 10 03:45:44 UTC 2017
+# Wed Jun 7 22:36:19 UTC 2017
pkgbase = libbitcoin-server-git
pkgdesc = Bitcoin Full Node and Query Server
pkgver = 20170307
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/libbitcoin/libbitcoin-server
install = bs.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index c5d7d2144d7..35fcf71388a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=libbitcoin-server-git
pkgver=20170307
-pkgrel=4
+pkgrel=5
pkgdesc="Bitcoin Full Node and Query Server"
arch=('i686' 'x86_64')
depends=('boost'
@@ -46,6 +46,10 @@ provides=('libbitcoin-server')
conflicts=('libbitcoin-server')
install=bs.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"
@@ -82,14 +86,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 ${pkgname%-git}
msg2 'Testing...'
- make -j$(($(nproc)/2)) check
+ make -j$_nproc check
}
package() {