summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2015-05-13 12:59:47 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit4bfa436c5fd8f77723bfb671cb34618152661ee7 (patch)
tree0cdb9fc197d7ab9819ee7c287c64b355ac4b25c7
parente49d70a8e27e9839dac2a12a131d9c743c445166 (diff)
downloadslackbuilds-4bfa436c5fd8f77723bfb671cb34618152661ee7.tar.gz
libraries/cryptopp: Added a pkgconfig file, various cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild14
-rw-r--r--libraries/cryptopp/cryptopp.pc13
2 files changed, 25 insertions, 2 deletions
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
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}