libraries/cryptopp: Fix script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2014-10-03 08:21:43 +07:00 committed by Willy Sudiarto Raharjo
parent 2234748620
commit ead0d7cfa2

View file

@ -7,7 +7,7 @@
PRGNAM=cryptopp
VERSION=${VERSION:-5.6.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -55,11 +55,9 @@ find -L . \
# Fix Makefile to install correctly on x86_64.
sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile
# Fix Makefile to remove copying of non-existent *.so (else make install will fail)
sed -i "/*.so/d" GNUmakefile
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make dynamic CFLAGS="$SLKCFLAGS" CXXFLAGS="-DNDEBUG $SLKCFLAGS"
make install PREFIX=$PKG/usr
ln -s libcryptopp.so $PKG/usr/lib${LIBDIRSUFFIX}/libcryptopp-${VERSION}.so.0
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