extra/crypto++ to 5.6.2-4

This commit is contained in:
Kevin Mihelich 2015-12-10 05:28:07 +00:00
parent 60dd066d51
commit 0d2faa651e

View file

@ -12,7 +12,7 @@
pkgname=crypto++
pkgver=5.6.2
_srcver=562
pkgrel=3
pkgrel=4
pkgdesc="A free C++ class library of cryptographic schemes"
arch=('i686' 'x86_64')
url="http://www.cryptopp.com/"
@ -37,12 +37,13 @@ build() {
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile
make libcryptopp.so
}
package() {
install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
install -m644 .libs/libcryptopp.so "${pkgdir}/usr/lib/libcryptopp.so"
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"
}