mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
libraries/cryptopp: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
2234748620
commit
ead0d7cfa2
1 changed files with 3 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PRGNAM=cryptopp
|
||||
VERSION=${VERSION:-5.6.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -55,11 +55,9 @@ find -L . \
|
|||
# Fix Makefile to install correctly on x86_64.
|
||||
sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile
|
||||
|
||||
# Fix Makefile to remove copying of non-existent *.so (else make install will fail)
|
||||
sed -i "/*.so/d" GNUmakefile
|
||||
|
||||
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
|
||||
make dynamic CFLAGS="$SLKCFLAGS" CXXFLAGS="-DNDEBUG $SLKCFLAGS"
|
||||
make install PREFIX=$PKG/usr
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue