aboutsummaryrefslogtreecommitdiff
path: root/network/dropbox/dropbox.SlackBuild
diff options
context:
space:
mode:
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 1bfff66f29fb6..8cd65ecced840 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 . \