summaryrefslogtreecommitdiffstats
path: root/abs/extra/crypto++/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-07-05 23:42:00 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-07-05 23:42:00 (GMT)
commit234b8034cc19925deab37f6f6a39e44ff04b576c (patch)
tree687d4072e3ed1d14a01935c3f2cf2d65fb7b8972 /abs/extra/crypto++/PKGBUILD
parent764d67eb17ac6dd13af08e8423fe5aa68647347f (diff)
downloadlinhes_pkgbuild-234b8034cc19925deab37f6f6a39e44ff04b576c.zip
linhes_pkgbuild-234b8034cc19925deab37f6f6a39e44ff04b576c.tar.gz
linhes_pkgbuild-234b8034cc19925deab37f6f6a39e44ff04b576c.tar.bz2
crypto++: add as dep for amule
Diffstat (limited to 'abs/extra/crypto++/PKGBUILD')
-rw-r--r--abs/extra/crypto++/PKGBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/abs/extra/crypto++/PKGBUILD b/abs/extra/crypto++/PKGBUILD
index 0f07ea5..45c90d5 100644
--- a/abs/extra/crypto++/PKGBUILD
+++ b/abs/extra/crypto++/PKGBUILD
@@ -1,5 +1,6 @@
-# $Id: PKGBUILD 98274 2010-11-06 10:51:05Z giovanni $
+# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
@@ -7,21 +8,29 @@
pkgname=crypto++
pkgver=5.6.1
_srcver=561
-pkgrel=1
+pkgrel=2
pkgdesc="A free C++ class library of cryptographic schemes."
arch=('i686' 'x86_64')
+url="http://www.cryptopp.com/"
license=('custom')
+depends=('gcc-libs')
makedepends=('unzip')
-url="http://www.cryptopp.com/"
-source=(http://www.cryptopp.com/cryptopp${_srcver}.zip)
-md5sums=('96cbeba0907562b077e26bcffb483828')
+source=(http://www.cryptopp.com/cryptopp${_srcver}.zip
+ libcrypto++.pc)
+md5sums=('96cbeba0907562b077e26bcffb483828'
+ '2337c6edbc552d9142cae8e0854715e7')
build() {
cd ${srcdir}
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
- make -f GNUmakefile || return 1
- install -d ${pkgdir}/usr/{lib,include/cryptopp}
+ export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
+ make -f GNUmakefile
+ make libcryptopp.so
+ install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
- install -m644 libcryptopp.a ${pkgdir}/usr/lib/
+ install -m644 libcryptopp.a ${pkgdir}/usr/lib/libcryptopp.a
+ install -m644 libcryptopp.so ${pkgdir}/usr/lib/libcryptopp.so
+ install -m644 ${srcdir}/libcrypto++.pc "${pkgdir}/usr/lib/pkgconfig/libcrypto++.pc"
install -D -m644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
+