2014-12-20 14:20:30 +08:00
|
|
|
pkgname=crypto++
|
|
|
|
_pkgname=cryptopp
|
2016-12-27 20:12:45 +08:00
|
|
|
pkgver=5.6.5
|
2014-12-20 14:20:30 +08:00
|
|
|
_pkgver=${pkgver//./}
|
2018-02-14 04:53:00 +08:00
|
|
|
pkgrel=2
|
2014-12-20 14:20:30 +08:00
|
|
|
pkgdesc="C++ class library of cryptographic schemes."
|
2016-09-20 20:11:22 +08:00
|
|
|
arch=('x86_64')
|
2014-12-20 14:20:30 +08:00
|
|
|
url="http://www.cryptopp.com"
|
|
|
|
license=('custom')
|
2016-12-27 20:12:45 +08:00
|
|
|
depends=('gcc-libs')
|
2014-12-20 14:20:30 +08:00
|
|
|
makedepends=('unzip')
|
2014-12-20 14:42:49 +08:00
|
|
|
source=($url/$_pkgname$_pkgver.zip
|
|
|
|
libcrypto++.pc)
|
2016-12-27 20:12:45 +08:00
|
|
|
md5sums=('df5ef4647b4e978bba0cac79a83aaed5'
|
2014-12-20 14:42:49 +08:00
|
|
|
'46de3847c59ad16456fa863eb33e73b2')
|
2014-12-20 14:20:30 +08:00
|
|
|
|
2014-12-20 14:42:49 +08:00
|
|
|
# The code below has been copied from the Arch Linux PKGBUILD.
|
2014-12-20 14:20:30 +08:00
|
|
|
build() {
|
2016-12-27 20:12:45 +08:00
|
|
|
CXXFLAGS+=" -DNDEBUG -fPIC" make -f GNUmakefile-cross
|
2014-12-20 14:42:49 +08:00
|
|
|
make libcryptopp.so
|
2014-12-20 14:20:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-12-20 14:42:49 +08:00
|
|
|
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"
|
2014-12-20 14:20:30 +08:00
|
|
|
}
|