# Maintainer: Maxime Gauduin # Contributor: Baptiste Jonglez # Contributor: Giovanni Scafora # Contributor: Alexander Rødseth # Contributor: Andrea Scarpino # Contributor: Kritoke # Contributor: jlvsimoes pkgname=crypto++ pkgver=8.7.0 pkgrel=1 pkgdesc='A free C++ class library of cryptographic schemes' arch=(x86_64) url=https://www.cryptopp.com/ license=(custom) depends=(gcc-libs) makedepends=( git unzip ) _tag=511806c0eba8ba5b5cedd4b4a814e96df92864a6 source=(git+https://github.com/weidai11/cryptopp.git#tag=${_tag}) b2sums=(SKIP) validpgpkeys=(B8CC19802062211A508B2F5CCE0586AF1F8E37BD) # Jeffrey Walton pkgver() { cd cryptopp git describe --tags | sed 's/^CRYPTOPP_//; s/_/./g' } build() { export CXXFLAGS="$CXXFLAGS -DNDEBUG -fPIC" make PREFIX=/usr -C cryptopp dynamic cryptest.exe libcryptopp.pc } check() { make PREFIX=/usr -C cryptopp test } package() { make DESTDIR="${pkgdir}" PREFIX=/usr -C cryptopp install install -Dm 644 cryptopp/License.txt -t "${pkgdir}"/usr/share/licenses/crypto++/ # Remove cryptest.exe and test files, only needed for check() and bloats the package # because cryptest.exe is linked statically. rm -rf "${pkgdir}"/usr/{bin,share/cryptopp} } # vim: ts=2 sw=2 et: