libraries/libwebp: Also strip generated python bindings.

Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2016-02-21 15:21:17 +01:00 committed by Willy Sudiarto Raharjo
parent e9e2f1f076
commit 22063600e8

View file

@ -5,7 +5,7 @@
PRGNAM=libwebp
VERSION=${VERSION:-0.4.3}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -66,7 +66,7 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
make install DESTDIR=$PKG
(
cd swig
@ -83,6 +83,9 @@ make install-strip DESTDIR=$PKG
fi
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION