development/idea: Prevent some binaries to get stripped.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Mario Antunes 2014-07-08 06:38:43 +07:00 committed by Willy Sudiarto Raharjo
parent dc9c1389be
commit 0cddba9db9

View file

@ -7,7 +7,7 @@
PRGNAM=idea
ARCNAM=ideaIC
VERSION=${VERSION:-13.1.3}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@ -40,8 +40,9 @@ chmod 755 $PKG/etc/profile.d/*
install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
install -D -m 0644 $PKG/opt/$PRGNAM/bin/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# Prevent fsnotifer and fsnotifier64 from being striped
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
| grep -v "fsnotifier" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/opt/$PRGNAM