summaryrefslogtreecommitdiff
path: root/misc/moedict-desktop.app
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-26 14:39:30 +1300
committerAndrew Clemons <andrew.clemons@gmail.com>2022-03-26 14:39:30 +1300
commit51dd749c7e4622fd115ddf6e53a47ba911ee97d6 (patch)
tree195c257fcb98e4f863798463a4169a9987a8daca /misc/moedict-desktop.app
parent3b87deef24afa08e199ac97ad12a33262bd7316c (diff)
downloadslackbuilds-51dd749c7e4622fd115ddf6e53a47ba911ee97d6.tar.gz
misc/moedict-desktop.app: Fix ARCH detection.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'misc/moedict-desktop.app')
-rw-r--r--misc/moedict-desktop.app/moedict-desktop.app.SlackBuild9
1 files changed, 3 insertions, 6 deletions
diff --git a/misc/moedict-desktop.app/moedict-desktop.app.SlackBuild b/misc/moedict-desktop.app/moedict-desktop.app.SlackBuild
index b2a02da575..7131f5aabb 100644
--- a/misc/moedict-desktop.app/moedict-desktop.app.SlackBuild
+++ b/misc/moedict-desktop.app/moedict-desktop.app.SlackBuild
@@ -50,18 +50,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
+if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ echo "$ARCH is unsupported."
+ exit 1
fi
set -e