summaryrefslogtreecommitdiff
path: root/development/brackets
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-04 05:57:40 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-04 05:57:40 +0700
commit1c9630396a80726691a572adccb24b1612ff2c43 (patch)
tree01867ddf048bf54dda47d5d3e6dbdbc8d6d07d5d /development/brackets
parentdb4407be8410e196562a82cd363db3bad775def0 (diff)
downloadslackbuilds-1c9630396a80726691a572adccb24b1612ff2c43.tar.gz
development/brackets: Fix build on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/brackets')
-rw-r--r--development/brackets/brackets.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/development/brackets/brackets.SlackBuild b/development/brackets/brackets.SlackBuild
index 25a58e3ec8..f49950ebd3 100644
--- a/development/brackets/brackets.SlackBuild
+++ b/development/brackets/brackets.SlackBuild
@@ -38,7 +38,7 @@ case "$ARCH" in
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
set -e
@@ -51,7 +51,11 @@ OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/${SRCNAM}.${RELEASE}.${VERSION}.${DEBARCH}.deb data.tar.gz | tar xzv
+if [ "$ARCH" = "x86_64" ]; then
+ ar p $CWD/${SRCNAM}.${RELEASE}.${VERSION}.${DEBARCH}.deb data.tar.gz | tar xzv
+else
+ ar p $CWD/${SRCNAM}.${RELEASE}.${VERSION}.${DEBARCH}.deb data.tar.xz | unxz | tar xv
+fi
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \