From add19a9a8780d5d17b24dc66be93737a32d0e928 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Fri, 6 Feb 2015 18:54:43 +0700 Subject: network/dropbox: Fix ARCH on x86. Signed-off-by: Willy Sudiarto Raharjo --- network/dropbox/dropbox.SlackBuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'network') 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 . \ -- cgit v1.2.3