network/opera-legacy: Fix ARCH detection and support.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0edf701913
commit
8ef08c0691
|
@ -32,7 +32,7 @@ PKGTYPE=${PKGTYPE:-tgz}
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i686 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -55,16 +55,11 @@ SRCVER=${SRCVER:-12.16-1860}
|
|||
|
||||
set -e
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBDIRSUFFIX="64"
|
||||
OARCH=$ARCH
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
LIBDIRSUFFIX=""
|
||||
OARCH=i386
|
||||
else
|
||||
printf "\n\n$ARCH is not supported...\n"
|
||||
exit 1
|
||||
fi
|
||||
case "$ARCH" in
|
||||
i?86) OARCH=i386 ; LIBDIRSUFFIX="" ;;
|
||||
x86_64) OARCH=$ARCH ; LIBDIRSUFFIX="64" ;;
|
||||
*) printf "\n\n$ARCH is not supported...\n" ; exit 1 ;;
|
||||
esac
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
|
Loading…
Reference in New Issue