development/atom: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
DhabyX 2016-10-30 11:04:53 +07:00 committed by Willy Sudiarto Raharjo
parent 57fdec2ebb
commit 21c9d4d66a

View file

@ -24,7 +24,7 @@
PRGNAM=atom
VERSION=${VERSION:-1.11.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
#Disable send metrics to Google Analytics module
@ -98,8 +98,10 @@ fi
install -Dm755 atom.sh $PKG/usr/bin/atom
cp -r out/$PRGNAM-$VERSION-$ARCH_OUTPUT/* $PKG/usr/share/atom/
ln -sf $PKG/usr/share/atom/resources/app/apm/node_modules/.bin/apm \
$PKG/usr/bin/apm
(
cd $PKG/usr/bin
ln -sf ../share/atom/resources/app/apm/node_modules/.bin/apm apm
)
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