aboutsummaryrefslogtreecommitdiff
path: root/development/atom/atom.SlackBuild
diff options
context:
space:
mode:
authorDhabyX <slack.dhabyx@gmail.com>2014-07-17 07:36:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-17 07:36:14 +0700
commit2f5155a1c3d9b40698ef43734e6fb4fcf38ea084 (patch)
treee8744f7449b3fdf94cd574e2de8444bf17c873eb /development/atom/atom.SlackBuild
parent6fb5be2b85ea0e939fbb3c4f47f67060437da9d5 (diff)
development/atom: Updated for version 0.115.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/atom/atom.SlackBuild')
-rw-r--r--development/atom/atom.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/development/atom/atom.SlackBuild b/development/atom/atom.SlackBuild
index 4bf7ef4685ac1..f3a3af9afbbeb 100644
--- a/development/atom/atom.SlackBuild
+++ b/development/atom/atom.SlackBuild
@@ -23,11 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=atom
-VERSION=${VERSION:-0.103.0}
+VERSION=${VERSION:-0.115.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
#Some variables needed for compile tar version
-GITSHA1='d8d378e0832d52d505bc92367b61a32bc010911a'
+GITSHA1='cdb5fe15d2c8e8b756cec6fe7ac1b0df528d5d7b'
GITBRANCH='master'
#Disable send metrics to Google Analytics module
@@ -75,10 +75,10 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "$DISABLE_METRICS" == "yes" ]; then
- patch -p1 < $CWD/disableMetrics.diff
+ sed -i '/"metrics":/d' package.json
fi
echo '*********************************************************************'
@@ -96,8 +96,7 @@ BUILD_DIR=$PWD/destbuild
JANKY_SHA1=$GITSHA1 \
JANKY_BRANCH=$GITBRANCH \
PYTHON=python2 \
- INSTALL_PREFIX=$PKG/usr \
- ./script/grunt --build-dir=$BUILD_DIR install
+ ./script/grunt --build-dir=$BUILD_DIR --install-dir=$PKG/usr install
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
@@ -110,8 +109,9 @@ mkdir -p $PKG/usr/share/pixmaps
cp -a resources/atom.png \
$PKG/usr/share/pixmaps
mkdir -p $PKG/usr/share/applications
-sed -e "s#<%=.*%>#Hackable text editor#" \
- -e "s#/usr.*atom#/usr/bin/atom#" \
+sed -e "s#<%= description %>#Hackable text editor#" \
+ -e "s#<%= installDir %>.*atom#/usr/bin/atom#" \
+ -e "s#<%= iconName %>#atom#" \
resources/linux/Atom.desktop.in > \
$PKG/usr/share/applications/Atom.desktop
@@ -123,10 +123,8 @@ if [ "$DELETE_CACHE" == "yes" ]; then
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -ar LICENSE.md README.md CONTRIBUTING.md docs \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > \
- $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -ar LICENSE.md README.md CONTRIBUTING.md docs $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc