summaryrefslogtreecommitdiff
path: root/extra/crypto++/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/crypto++/PKGBUILD')
-rw-r--r--extra/crypto++/PKGBUILD25
1 files changed, 12 insertions, 13 deletions
diff --git a/extra/crypto++/PKGBUILD b/extra/crypto++/PKGBUILD
index ce40eeb08..7bcececdc 100644
--- a/extra/crypto++/PKGBUILD
+++ b/extra/crypto++/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 155988 2012-04-10 20:46:54Z giovanni $
+# $Id: PKGBUILD 179501 2013-03-05 17:32:57Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
@@ -6,9 +6,9 @@
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
pkgname=crypto++
-pkgver=5.6.1
-_srcver=561
-pkgrel=4.1
+pkgver=5.6.2
+_srcver=562
+pkgrel=1
pkgdesc="A free C++ class library of cryptographic schemes"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.cryptopp.com/"
@@ -17,23 +17,22 @@ depends=('gcc-libs')
makedepends=('unzip')
source=("http://www.cryptopp.com/cryptopp${_srcver}.zip"
'libcrypto++.pc'
- 'GNUmakefile.parabola'
- 'gcc4.7.patch')
-md5sums=('96cbeba0907562b077e26bcffb483828'
- '2337c6edbc552d9142cae8e0854715e7'
- 'c95b2134a8c0a35b173ede32001870d2'
- 'cf26a783d9432e7f9ab7f14d3db3f196')
+ 'GNUmakefile.parabola')
+md5sums=('7ed022585698df48e65ce9218f6c6a67'
+ '46de3847c59ad16456fa863eb33e73b2'
+ 'c95b2134a8c0a35b173ede32001870d2')
build() {
cd ${srcdir}
- # Fix gcc 4.7 build
- patch -Np1 -i "${srcdir}/gcc4.7.patch"
-
# The upstream build system expects this file to be modified
# to e.g. use system CFLAGS or use features of modern linkers.
cp "${srcdir}/GNUmakefile.parabola" GNUmakefile
make -f GNUmakefile
+
+ sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
+ export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
+ make -f GNUmakefile
make libcryptopp.so
}