diff options
author | Ryan P.C. McQuen <ryanpcmcquen@gmail.com> | 2014-03-20 00:03:41 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-03-21 13:01:21 -0500 |
commit | 6904d3dc021761b8b7e04a5b1e53026c85b5c92e (patch) | |
tree | 55248546c63f2aa0670c007788a68c442d0bd0e9 /development/brackets/brackets.SlackBuild | |
parent | e87197ddd2a37c6e7f34e250941019e6a4e981dc (diff) |
development/brackets: Updated for version 37.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/brackets/brackets.SlackBuild')
-rw-r--r-- | development/brackets/brackets.SlackBuild | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/development/brackets/brackets.SlackBuild b/development/brackets/brackets.SlackBuild index 245d0d7957791..36aca9989813b 100644 --- a/development/brackets/brackets.SlackBuild +++ b/development/brackets/brackets.SlackBuild @@ -21,8 +21,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PKGNAM=brackets -RELEASE=sprint -VERSION=${VERSION:-36} +SRCNAM=Brackets +RELEASE=Sprint +VERSION=${VERSION:-37} # Allow $ARCH to be preset before running the script. This is useful in the # case where someone is running a 32-bit chroot environment under an x86_64 @@ -30,23 +31,14 @@ VERSION=${VERSION:-36} ARCH=${ARCH:-$(uname -m)} case "$ARCH" in - i?86) DEBARCH="LINUX32" ; LIBDIRSUFFIX="" ; ARCH=i386 ;; - x86_64) DEBARCH="LINUX64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;; + i?86) DEBARCH="32-bit" ; LIBDIRSUFFIX="" ; ARCH=i386 ;; + x86_64) DEBARCH="64-bit" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;; *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;; esac BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ ! $UID = 0 ]; then - cat << EOF - -This script must be run as root. - -EOF - exit 1 -fi - set -e CWD=$(pwd) @@ -57,7 +49,7 @@ OUTPUT=${OUTPUT:-/tmp} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG -ar p $CWD/brackets-${RELEASE}-${VERSION}-${DEBARCH}.deb data.tar.gz | tar xzv +ar p $CWD/${SRCNAM}.${RELEASE}.${VERSION}.${DEBARCH}.deb data.tar.gz | tar xzv chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,4 +71,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$RELEASE-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |