#\Maintainer: Dimitris Tzemos pkgname=cryptopp pkgver=5.6.1 pkgrel=2rl source=(http://www.cryptopp.com/$pkgname\561.zip \ gcc4.7.patch \ fix_build_system.patch \ libcrypto++.pc) sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("readme.txt" "license.txt") url=http://www.cryptopp.com slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "cryptopp (library of cryptographic schemes)" "Crypto++ Library is a free C++ class library of cryptographic schemes" ) build() { cd $startdir/src/ patch -p0 -i fix_build_system.patch patch -Np1 -F3 -i "$startdir/src/gcc4.7.patch" sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" make -f GNUmakefile -j $numjobs || return 1 # make install DESTDIR=$startdir/pkg || return 1 cd $startdir/src/ install -d $startdir/pkg/usr/{lib/pkgconfig,include/cryptopp} install -m644 *.h $startdir/pkg/usr/include/cryptopp/ install -m644 .libs/libcryptopp.a "$startdir/pkg/usr/lib/libcryptopp.a" install -m644 .libs/libcryptopp.so "$startdir/pkg/usr/lib/libcryptopp.so" install -m644 $startdir/src/libcrypto++.pc "$startdir/pkg/usr/lib/pkgconfig/libcrypto++.pc" }