aboutsummaryrefslogtreecommitdiff
path: root/network/cmdiag
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 04:04:11 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:30 +0000
commit4abe04908e8f100f129d150143984fc4fff88fb0 (patch)
treece19f534763d7f42e2e824b9cc1a9c2fe288a4a7 /network/cmdiag
parent57a9245f42f7f36e4b9afa7c2120ad297de8e1d5 (diff)
network/cmdiag: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/cmdiag')
-rw-r--r--network/cmdiag/cmdiag.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/cmdiag/cmdiag.SlackBuild b/network/cmdiag/cmdiag.SlackBuild
index bb60d3a6a4b18..02b7da91f9fa3 100644
--- a/network/cmdiag/cmdiag.SlackBuild
+++ b/network/cmdiag/cmdiag.SlackBuild
@@ -4,13 +4,13 @@
# Written by Michal Bialozor <bialyy@o2.pl>
PRGNAM=cmdiag
-VERSION=0.2
+VERSION=${VERSION:-0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -21,8 +21,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"