From 8ef08c0691d77e4915e634c27dec69c6a5256cf0 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Fri, 25 Mar 2022 17:44:44 +1300 Subject: network/opera-legacy: Fix ARCH detection and support. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- network/opera-legacy/opera-legacy.SlackBuild | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'network/opera-legacy') 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 -- cgit v1.2.3