From 4bfa436c5fd8f77723bfb671cb34618152661ee7 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 13 May 2015 12:59:47 +0200 Subject: libraries/cryptopp: Added a pkgconfig file, various cleanups. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- libraries/cryptopp/cryptopp.SlackBuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'libraries/cryptopp/cryptopp.SlackBuild') diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild index 179c2df479..8e93f42813 100644 --- a/libraries/cryptopp/cryptopp.SlackBuild +++ b/libraries/cryptopp/cryptopp.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=cryptopp VERSION=${VERSION:-5.6.2} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,11 +57,21 @@ sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile make dynamic CFLAGS="$SLKCFLAGS" CXXFLAGS="-DNDEBUG $SLKCFLAGS" make install PREFIX=$PKG/usr -ln -s libcryptopp.so $PKG/usr/lib${LIBDIRSUFFIX}/libcryptopp-${VERSION}.so.0 +( cd $PKG/usr/lib${LIBDIRSUFFIX} + mv libcryptopp.so libcryptopp-${VERSION}.so.0 + ln -s libcryptopp-${VERSION}.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|" $CWD/$PRGNAM.pc \ + > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3