diff options
author | DhabyX <slack.dhabyx@gmail.com> | 2016-10-24 19:32:07 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-10-24 19:32:07 +0700 |
commit | 8297f5ec589a4bcee2837854271a7fe627346647 (patch) | |
tree | 7fcc34214b4e43e80d050dbac5cb91ba7516fbf6 | |
parent | 68cbfc1f475e57f94f789fde7a28942ecb449adc (diff) |
development/atom: Updated for version 1.11.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/atom/README | 5 | ||||
-rw-r--r-- | development/atom/atom.SlackBuild | 29 | ||||
-rw-r--r-- | development/atom/atom.info | 6 |
3 files changed, 24 insertions, 16 deletions
diff --git a/development/atom/README b/development/atom/README index b65b016b6ba4..9e1bee371549 100644 --- a/development/atom/README +++ b/development/atom/README @@ -5,13 +5,12 @@ a modern text editor, like a file system browser, fuzzy finder for quickly opening files, fast project-wide search and replace, snippets, code folding and more. -The apm tool is renamed to atom-apm for prevent conflicts with -apmd package. - To build Atom is necessary to download about 500MB of data, which are temporarily stored in ~/.atom, which can be deleted after building. +If you use apmd package you need rename apm tool. + Optional building features: * Disable compiling metrics module for Google Analytics for poeple who love your privacy diff --git a/development/atom/atom.SlackBuild b/development/atom/atom.SlackBuild index e43b41e14c7e..3480a6243609 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 ( diff --git a/development/atom/atom.info b/development/atom/atom.info index 0ecfb97dba96..1609cbb94491 100644 --- a/development/atom/atom.info +++ b/development/atom/atom.info @@ -1,8 +1,8 @@ PRGNAM="atom" -VERSION="1.10.0" +VERSION="1.11.2" HOMEPAGE="https://atom.io/" -DOWNLOAD="https://codeload.github.com/atom/atom/tar.gz/v1.10.0" -MD5SUM="55b3ff56f6a09523c00237e5d1f1cd99" +DOWNLOAD="https://codeload.github.com/atom/atom/tar.gz/v1.11.2" +MD5SUM="c94d983357a6c4f19ad17f60663f43da" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="nodejs" |