summaryrefslogtreecommitdiff
path: root/core/libgcrypt/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/libgcrypt/PKGBUILD')
-rw-r--r--core/libgcrypt/PKGBUILD26
1 files changed, 22 insertions, 4 deletions
diff --git a/core/libgcrypt/PKGBUILD b/core/libgcrypt/PKGBUILD
index fabc45ca3..b7cbad492 100644
--- a/core/libgcrypt/PKGBUILD
+++ b/core/libgcrypt/PKGBUILD
@@ -1,9 +1,13 @@
-# $Id: PKGBUILD 203657 2014-01-13 17:30:34Z foutrelis $
+# $Id: PKGBUILD 204471 2014-01-20 16:59:28Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# after a .so bump first rebuild dirmngr
+# with sudo testing-x86_64-build -- -I libgcrypt-1.6.0-1-x86_64.pkg.tar.xz
+# then cp /usr/lib/libgcrypt.so.11 /var/lib/archbuild/staging-x86_64/root/usr/lib/ and do staging-x86_64-build
+
pkgname=libgcrypt
pkgver=1.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="General purpose cryptographic library based on the code from GnuPG"
arch=(i686 x86_64)
url="http://www.gnupg.org"
@@ -11,8 +15,22 @@ license=('LGPL')
depends=('libgpg-error>=1.10-2')
options=('!emptydirs')
install=$pkgname.install
-source=(ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('43283c0b41c41e3d3bc13c2d8f937dfe2aaa1a77')
+source=(ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+ fix_avx_detection.patch
+ fix_slow_PBKDF2.patch)
+sha1sums=('43283c0b41c41e3d3bc13c2d8f937dfe2aaa1a77'
+ '5219ee3d6e08155149f0fa410b07736d4f502d17'
+ 'a27baab3f4bda7ff6fb493115f6bdd1c990184f1')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ # fix AVX/AVX2 detextion
+ patch -Np1 -i ${srcdir}/fix_avx_detection.patch
+
+ # fix slow PBKDF2
+ patch -Np1 -i ${srcdir}/fix_slow_PBKDF2.patch
+}
build() {
cd ${pkgname}-${pkgver}