libraries/cryptopp: Bring back required .pc file.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2016-09-15 18:21:19 +07:00 committed by Willy Sudiarto Raharjo
parent 67bdc4365a
commit b1f6309e06
2 changed files with 21 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PRGNAM=cryptopp
VERSION=${VERSION:-5.6.4}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -62,6 +62,13 @@ 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
# Install a pkgconfig file
mkdir $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
sed "s|@LIBDIRSUFFIX@|$LIBDIRSUFFIX|" $CWD/$PRGNAM.pc \
> $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc
sed -i "s/5.6.2/${VERSION}/" $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

View file

@ -0,0 +1,13 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib@LIBDIRSUFFIX@
includedir=${prefix}/include/cryptopp
Name: Crypto++
Description: A free C++ class library of cryptographic schemes
Version: 5.6.2
URL: http://www.cryptopp.com
Requires:
Conflicts:
Libs: -L${libdir} -lcryptopp
Cflags: -I${includedir}