diff options
Diffstat (limited to 'development/atom-amd64/atom-amd64.SlackBuild')
-rw-r--r-- | development/atom-amd64/atom-amd64.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/development/atom-amd64/atom-amd64.SlackBuild b/development/atom-amd64/atom-amd64.SlackBuild index 5dc5cf1a73..2ac956f5d0 100644 --- a/development/atom-amd64/atom-amd64.SlackBuild +++ b/development/atom-amd64/atom-amd64.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Atom @@ -27,16 +27,26 @@ # Thanks Azar Shafiei for her helps and great encouragement. # +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=atom-amd64 SRCNAM=atom-amd64 -VERSION=${VERSION:-1.28.0} +VERSION=${VERSION:-1.60.0} SRCDIR=atom-$VERSION-amd64 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=x86_64 -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -79,4 +89,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |