33 lines
779 B
Plaintext
33 lines
779 B
Plaintext
![]() |
# Description: free C++ class library of cryptographic schemes.
|
||
|
# URL: http://www.eskimo.com/~weidai/cryptlib.html
|
||
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
||
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
||
|
# Depends on:
|
||
|
|
||
|
# Used mandrake spec as an example.
|
||
|
|
||
|
name=libcryptopp
|
||
|
version=5.2.1
|
||
|
release=1
|
||
|
source="
|
||
|
http://www.eskimo.com/~weidai/cryptopp${version//./}.zip
|
||
|
crypto-$version.patch.gz
|
||
|
"
|
||
|
|
||
|
build()
|
||
|
{
|
||
|
zcat crypto-$version.patch.gz | patch
|
||
|
chmod 755 configure
|
||
|
./configure --prefix=/usr
|
||
|
# Don't optimize with -O2, it BREAKS the lib: running 'cryptest v' fails
|
||
|
make CXXFLAGS="-O0 -DNDEBUG -pipe"
|
||
|
install -d tmp
|
||
|
cp -a *.dat TestVectors/* tmp
|
||
|
(
|
||
|
cd tmp
|
||
|
../cryptest v
|
||
|
)
|
||
|
rm -r tmp
|
||
|
make install DESTDIR=$PKG
|
||
|
}
|