From 22063600e8c6ca5f69165feb0e2b15685055229a Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sun, 21 Feb 2016 15:21:17 +0100 Subject: libraries/libwebp: Also strip generated python bindings. Signed-off-by: Heinz Wiesinger --- libraries/libwebp/libwebp.SlackBuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libraries/libwebp') diff --git a/libraries/libwebp/libwebp.SlackBuild b/libraries/libwebp/libwebp.SlackBuild index f848f821fb..79cba35815 100644 --- a/libraries/libwebp/libwebp.SlackBuild +++ b/libraries/libwebp/libwebp.SlackBuild @@ -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 -- cgit v1.2.3