aboutsummaryrefslogtreecommitdiff
path: root/development/atom/atom.SlackBuild
diff options
context:
space:
mode:
authorDhabyX <slack.dhabyx@gmail.com>2016-10-24 19:32:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-24 19:32:07 +0700
commit8297f5ec589a4bcee2837854271a7fe627346647 (patch)
tree7fcc34214b4e43e80d050dbac5cb91ba7516fbf6 /development/atom/atom.SlackBuild
parent68cbfc1f475e57f94f789fde7a28942ecb449adc (diff)
development/atom: Updated for version 1.11.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/atom/atom.SlackBuild')
-rw-r--r--development/atom/atom.SlackBuild29
1 files changed, 19 insertions, 10 deletions
diff --git a/development/atom/atom.SlackBuild b/development/atom/atom.SlackBuild
index e43b41e14c7ee..3480a6243609f 100644
--- a/development/atom/atom.SlackBuild
+++ b/development/atom/atom.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=atom
-VERSION=${VERSION:-1.10.0}
+VERSION=${VERSION:-1.11.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -82,21 +82,30 @@ echo '*********************************************************************'
echo '* The installation process will download a lot of modules for atom. *'
echo '*********************************************************************'
-mkdir -p destbuild
-BUILD_DIR=$PWD/destbuild
+PYTHON=python2 \
+ ./script/build
- npm_config_target_arch=$ARCH \
- PYTHON=python2 \
- ./script/build --build-dir=$BUILD_DIR
+# Manual installation since --install-dir option is deleted
+# Installation based on spec file from official RPM package from atom
+install -d $PKG/usr/{bin,doc,share}
+install -d $PKG/usr/share/atom/
- PYTHON=python2 \
- ./script/grunt --build-dir=$BUILD_DIR --install-dir=$PKG/usr install
+# detect output directory
+ARCH_OUTPUT="i386"
+if [ "$ARCH" = "x86_64" ]; then
+ ARCH_OUTPUT="amd64"
+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
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
-# move apm symlink to atom-apm for prevent conflicts with apmd package.
-mv $PKG/usr/bin/apm $PKG/usr/bin/atom-apm
+# use only if you use apmd package from slackware pastures
+# mv $PKG/usr/bin/apm $PKG/usr/bin/atom-apm
# move and configure icons and .desktop file
(