# $Id: PKGBUILD 179501 2013-03-05 17:32:57Z giovanni $ # Maintainer: Giovanni Scafora # Contributor: Alexander Rødseth # Contributor: Andrea Scarpino # Contributor: Kritoke # Contributor: jlvsimoes pkgname=crypto++ pkgver=5.6.2 _srcver=562 pkgrel=1 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') source=("http://www.cryptopp.com/cryptopp${_srcver}.zip" 'libcrypto++.pc') md5sums=('7ed022585698df48e65ce9218f6c6a67' '46de3847c59ad16456fa863eb33e73b2') build() { cd ${srcdir} sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" make -f GNUmakefile make libcryptopp.so } package() { cd ${srcdir} install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp} install -m644 *.h ${pkgdir}/usr/include/cryptopp/ 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" }