#Maintainer: Dimitris Tzemos pkgname=cryptopp pkgver=5.6.2 pkgrel=1dj source=(http://www.cryptopp.com/$pkgname\562.zip cryptopp.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/ # Fix Makefile to install correctly on x86_64. sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile make dynamic CFLAGS="$SLKCFLAGS" CXXFLAGS="-DNDEBUG $SLKCFLAGS" make install PREFIX=$PKG/usr ( cd $PKG/usr/lib${LIBDIRSUFFIX} mv libcryptopp.so libcryptopp-${pkgver}.so.0 ln -s libcryptopp-${pkgver}.so.0 libcryptopp.so ) # This is empty rmdir $PKG/usr/bin find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Install a pkgconfig file mkdir $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig sed "s|@LIBDIRSUFFIX@|$LIBDIRSUFFIX|" $SRC/$pkgname.pc \ > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$pkgname.pc }