diff options
author | Alexandre Demers | 2015-07-24 00:29:09 -0400 |
---|---|---|
committer | Alexandre Demers | 2015-07-24 00:29:09 -0400 |
commit | d11e3fc49bf98064e2e6b8449e2a14b0b7a5cf90 (patch) | |
tree | d1afbd08808b7f617a58f5f874a3f773f8c7fb9e | |
parent | a4cb50cacdbe7b998366f3bb38a6d742d990ad4a (diff) | |
download | aur-d11e3fc49bf98064e2e6b8449e2a14b0b7a5cf90.tar.gz |
Accelerate build by using more cores
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,7 +3,7 @@ _gitname=libgcrypt pkgname=libgcrypt15-git pkgver=1.5.4.r3.g35cd81f -pkgrel=1 +pkgrel=2 pkgdesc="General purpose cryptographic library based on the code from GnuPG. Latest commit from 1.5 branch - API version 11." arch=('i686' 'x86_64') @@ -28,6 +28,9 @@ pkgver() { } build() { + _cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null) + _jc=$((${_cpucount:-1})) + echo "$srcdir/$_gitname" cd "$srcdir/$_gitname" ./autogen.sh --force @@ -37,7 +40,7 @@ build() { --prefix=/usr \ --disable-static \ --disable-padlock-support - make + make -j $_jc } # check() { |