aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorD Woodfall <dave@slackbuilds.org>2023-05-16 15:41:03 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-20 11:17:56 +0700
commit8ebd5951493227e742e851b7aa6afe930c5f33a4 (patch)
tree9acb54896508c3e4df37b951500ce1486026531f /academic
parent1447112c50a4cf030da6d24803ee4dc656458695 (diff)
academic/seqkit: Fix ARCH sect.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/seqkit/seqkit.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/academic/seqkit/seqkit.SlackBuild b/academic/seqkit/seqkit.SlackBuild
index 447b5802b803..caff91cfb196 100644
--- a/academic/seqkit/seqkit.SlackBuild
+++ b/academic/seqkit/seqkit.SlackBuild
@@ -31,18 +31,21 @@ TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
- ARCH=$( uname -m )
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
fi
case "$ARCH" in
- i?86) ARCH=i386
+ i?86)
BINARCH="386"
;;
x86_64)
BINARCH="amd64"
;;
*)
- printf "\n\n%s\n" "$ARCH is not supported."
+ printf "\n\n%s\n" "$ARCH is not supported." >/dev/stderr
exit 1
;;
esac