summaryrefslogtreecommitdiffstats
path: root/development/atom/atom.SlackBuild
diff options
context:
space:
mode:
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 e43b41e14c..3480a62436 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
(