summaryrefslogtreecommitdiff
path: root/libraries/cryptopp
diff options
context:
space:
mode:
authorMarkus Reichelt <slackbuilds@mareichelt.de>2016-09-15 18:21:19 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-15 18:27:50 +0700
commitb1f6309e06543df683239371fbfa05d2d6882295 (patch)
tree2ebe88a14174d66b90f1bd37b174b64e7c0430a7 /libraries/cryptopp
parent67bdc4365a7e48a736010891a635dde400185a27 (diff)
downloadslackbuilds-b1f6309e06543df683239371fbfa05d2d6882295.tar.gz
libraries/cryptopp: Bring back required .pc file.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/cryptopp')
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild9
-rw-r--r--libraries/cryptopp/cryptopp.pc13
2 files changed, 21 insertions, 1 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 3f35780fe5..4dbceb13df 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
diff --git a/libraries/cryptopp/cryptopp.pc b/libraries/cryptopp/cryptopp.pc
new file mode 100644
index 0000000000..45d65d071b
--- /dev/null
+++ b/libraries/cryptopp/cryptopp.pc
@@ -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}