diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-22 23:26:15 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-26 01:20:16 +0700 |
commit | ae5027093bf59edcb5de359018e8888f9894682b (patch) | |
tree | ec96615d58829bd87eb808ad4f49f339365de7f4 /development/cf-cli | |
parent | 47e55bfe72ab20fe971ee35d131f62973df3e12f (diff) |
development/cf-cli: Fix ARCH detection.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cf-cli')
-rw-r--r-- | development/cf-cli/cf-cli.SlackBuild | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/development/cf-cli/cf-cli.SlackBuild b/development/cf-cli/cf-cli.SlackBuild index d63402f51f39..f46a18052f32 100644 --- a/development/cf-cli/cf-cli.SlackBuild +++ b/development/cf-cli/cf-cli.SlackBuild @@ -50,10 +50,7 @@ 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="" mv $CWD/${BIN}7-cli\_$VERSION\_linux\_$ARCH.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz @@ -62,8 +59,8 @@ elif [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" mv $CWD/${BIN}7-cli\_$VERSION\_linux\_x86-64.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + echo "$ARCH is unsupported." + exit 1 fi set -e |