pkgname=crypto++ _pkgname=cryptopp pkgver=5.6.5 _pkgver=${pkgver//./} pkgrel=2 pkgdesc="C++ class library of cryptographic schemes." arch=('x86_64') url="http://www.cryptopp.com" license=('custom') depends=('gcc-libs') makedepends=('unzip') source=($url/$_pkgname$_pkgver.zip libcrypto++.pc) md5sums=('df5ef4647b4e978bba0cac79a83aaed5' '46de3847c59ad16456fa863eb33e73b2') # The code below has been copied from the Arch Linux PKGBUILD. build() { CXXFLAGS+=" -DNDEBUG -fPIC" make -f GNUmakefile-cross make libcryptopp.so } package() { install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp} install -m644 *.h ${pkgdir}/usr/include/cryptopp/ 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" }