summaryrefslogtreecommitdiffstats
path: root/network/opera-legacy
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2022-03-25 17:44:44 +1300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-26 01:20:18 +0700
commit8ef08c0691d77e4915e634c27dec69c6a5256cf0 (patch)
treed9075b2d564049573a8f66f7d82534bb22289c24 /network/opera-legacy
parent0edf701913b6f19ec9624bffe3cb48c053312b74 (diff)
downloadslackbuilds-8ef08c0691d77e4915e634c27dec69c6a5256cf0.tar.gz
slackbuilds-8ef08c0691d77e4915e634c27dec69c6a5256cf0.tar.xz
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>
Diffstat (limited to 'network/opera-legacy')
-rw-r--r--network/opera-legacy/opera-legacy.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/network/opera-legacy/opera-legacy.SlackBuild b/network/opera-legacy/opera-legacy.SlackBuild
index 46361d040d..b4a9ac92f3 100644
--- a/network/opera-legacy/opera-legacy.SlackBuild
+++ b/network/opera-legacy/opera-legacy.SlackBuild
@@ -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