mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
network/dropbox: Fix ARCH on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
acc8ecf250
commit
add19a9a87
1 changed files with 13 additions and 2 deletions
|
@ -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 . \
|
||||
|
|
Loading…
Reference in a new issue