diff options
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 245d0d7957..36aca99898 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} |