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:
Andrew Clemons 2022-03-25 17:44:44 +13:00 committed by Willy Sudiarto Raharjo
parent 0edf701913
commit 8ef08c0691
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 11 deletions

View File

@ -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