aboutsummaryrefslogtreecommitdiff
path: root/libraries/cryptopp/cryptopp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/cryptopp/cryptopp.SlackBuild')
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 3f35780fe5c9b..4dbceb13dffa7 100644
--- a/libraries/cryptopp/cryptopp.SlackBuild
+++ b/libraries/cryptopp/cryptopp.SlackBuild
@@ -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