summaryrefslogtreecommitdiff
path: root/network/dropbox/dropbox.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-06 18:54:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-06 18:54:43 +0700
commitadd19a9a8780d5d17b24dc66be93737a32d0e928 (patch)
treee5a7a03578ca6068d07c51993237a8bb4592f7c2 /network/dropbox/dropbox.SlackBuild
parentacc8ecf250b83e1ea10b1f7b090466a6aefd2ccd (diff)
downloadslackbuilds-add19a9a8780d5d17b24dc66be93737a32d0e928.tar.gz
network/dropbox: Fix ARCH on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dropbox/dropbox.SlackBuild')
-rw-r--r--network/dropbox/dropbox.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/network/dropbox/dropbox.SlackBuild b/network/dropbox/dropbox.SlackBuild
index 1bfff66f29..8cd65ecced 100644
--- a/network/dropbox/dropbox.SlackBuild
+++ b/network/dropbox/dropbox.SlackBuild
@@ -76,24 +76,35 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=x86 ;;
+ i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ SOURCE="x86"
+elif [ "$ARCH" = "i686" ]; then
+ SOURCE="x86"
+elif [ "$ARCH" = "x86_64" ]; then
+ SOURCE="x86_64"
+else
+ SOURCE="x86"
+fi
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf .$PRGNAM-dist
-tar xvf $CWD/$PACKNAM.$ARCH-$VERSION.tar.gz
+tar xvf $CWD/$PACKNAM.$SOURCE-$VERSION.tar.gz
cd .$PRGNAM-dist
chown -R root:root .
find -L . \