diff options
-rw-r--r-- | development/atom/README | 8 | ||||
-rw-r--r-- | development/atom/atom.SlackBuild | 50 | ||||
-rw-r--r-- | development/atom/atom.info | 6 | ||||
-rw-r--r-- | development/atom/disableMetrics.diff | 11 |
4 files changed, 52 insertions, 23 deletions
diff --git a/development/atom/README b/development/atom/README index b747df381c0ba..7ae47025dbd75 100644 --- a/development/atom/README +++ b/development/atom/README @@ -8,3 +8,11 @@ snippets, code folding and more. To build Atom is necessary to download about 500MB of data, which are temporarily stored in /tmp/atom-cached-atom-shells and ~/.atom, which can be deleted after building. + +Optional building features: +* Disable compiling metrics module for Google Analytics + for poeple who love your privacy + https://github.com/atom/metrics + DISABLE_METRICS=yes|no (default: no) +* Delete temporary data cached after building package + DELETE_CACHE=yes|no (default: no) diff --git a/development/atom/atom.SlackBuild b/development/atom/atom.SlackBuild index 025ca532cc4c5..4bf7ef4685ac1 100644 --- a/development/atom/atom.SlackBuild +++ b/development/atom/atom.SlackBuild @@ -23,13 +23,18 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=atom -VERSION=${VERSION:-0.99.0} +VERSION=${VERSION:-0.103.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} #Some variables needed for compile tar version -GITSHA1='ea0773e8fcc42ab83820f4edf9b58e406514d035' +GITSHA1='d8d378e0832d52d505bc92367b61a32bc010911a' GITBRANCH='master' +#Disable send metrics to Google Analytics module +DISABLE_METRICS=${DISABLE_METRICS:-no} +#Clean cache data after building +DELETE_CACHE=${DELETE_CACHE:-no} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -62,7 +67,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION $PRGNAM-build +rm -rf $PRGNAM-$VERSION tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION cd $PRGNAM-$VERSION chown -R root:root . @@ -72,27 +77,29 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# patch: adding extra parameter for custom build dir. -patch -p1 < $CWD/customBuild.diff +if [ "$DISABLE_METRICS" == "yes" ]; then + patch -p1 < $CWD/disableMetrics.diff +fi echo '*********************************************************************' echo '* The installation process will download a lot of modules for atom. *' echo '*********************************************************************' -JANKY_SHA1=$GITSHA1 \ -JANKY_BRANCH=$GITBRANCH \ -PYTHON=python2 \ -BUILD_DIR=$TMP \ -./script/build +mkdir -p destbuild +BUILD_DIR=$PWD/destbuild + + JANKY_SHA1=$GITSHA1 \ + JANKY_BRANCH=$GITBRANCH \ + PYTHON=python2 \ + ./script/build --build-dir=$BUILD_DIR -JANKY_SHA1=$GITSHA1 \ -JANKY_BRANCH=$GITBRANCH \ -PYTHON=python2 \ -BUILD_DIR=$TMP \ -INSTALL_PREFIX=$PKG/usr \ -./script/grunt install + JANKY_SHA1=$GITSHA1 \ + JANKY_BRANCH=$GITBRANCH \ + PYTHON=python2 \ + INSTALL_PREFIX=$PKG/usr \ + ./script/grunt --build-dir=$BUILD_DIR install -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 # remove apm symlink for prevent conflicts with apmd package. @@ -108,9 +115,12 @@ sed -e "s#<%=.*%>#Hackable text editor#" \ resources/linux/Atom.desktop.in > \ $PKG/usr/share/applications/Atom.desktop -# delete temporal data -#rm -rf /tmp/atom-cached-atom-shells -#rm -rf ~/.atom/ + +if [ "$DELETE_CACHE" == "yes" ]; then + # delete temporal data + rm -rf /tmp/atom-cached-atom-shells + rm -rf ~/.atom/ +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -ar LICENSE.md README.md CONTRIBUTING.md docs \ diff --git a/development/atom/atom.info b/development/atom/atom.info index 427278759dab3..6d463307b2dce 100644 --- a/development/atom/atom.info +++ b/development/atom/atom.info @@ -1,8 +1,8 @@ PRGNAM="atom" -VERSION="0.99.0" +VERSION="0.103.0" HOMEPAGE="https://atom.io/" -DOWNLOAD="https://codeload.github.com/atom/atom/tar.gz/v0.99.0" -MD5SUM="93c85c7afd4882a15d3bbf107a933e1e" +DOWNLOAD="https://codeload.github.com/atom/atom/tar.gz/v0.103.0" +MD5SUM="08b6d92a3c16f5516965584e1241ee09" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="node" diff --git a/development/atom/disableMetrics.diff b/development/atom/disableMetrics.diff new file mode 100644 index 0000000000000..b931f47598e3b --- /dev/null +++ b/development/atom/disableMetrics.diff @@ -0,0 +1,11 @@ +diff -Naur atom-0.103.0/package.json atom-0.103.0.a/package.json +--- atom-0.103.0/package.json 2014-06-09 13:58:09.000000000 -0600 ++++ atom-0.103.0.a/package.json 2014-06-16 13:01:47.926728494 -0600 +@@ -90,7 +90,6 @@ + "keybinding-resolver": "0.18.0", + "link": "0.22.0", + "markdown-preview": "0.74.0", +- "metrics": "0.32.0", + "open-on-github": "0.28.0", + "package-generator": "0.30.0", + "release-notes": "0.32.0", |