summaryrefslogtreecommitdiff
path: root/network/noip2
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 04:28:44 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:39 +0000
commit59abb8ddbf77eed4e9e98fd34fb40a7010168bc8 (patch)
tree2a253a898f2174733786465d9e1fe3910ca71c5d /network/noip2
parent1bc570b5a42bc994158d34b2857ff27a9ba54bba (diff)
downloadslackbuilds-59abb8ddbf77eed4e9e98fd34fb40a7010168bc8.tar.gz
network/noip2: Allow VERSION override, i486=>i586, fix TAG.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/noip2')
-rw-r--r--network/noip2/noip2.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/network/noip2/noip2.SlackBuild b/network/noip2/noip2.SlackBuild
index bd3f68072e..9ea7572479 100644
--- a/network/noip2/noip2.SlackBuild
+++ b/network/noip2/noip2.SlackBuild
@@ -26,13 +26,13 @@
PRGNAM=noip2
SRCNAM=noip
-VERSION=2.1.9
+VERSION=${VERSION:-2.1.9}
BUILD=${BUILD:-1}
-TAG=${TAG=_SBo}
+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
@@ -61,8 +61,8 @@ find -L . \
set -e
# Rewrite CFLAGS
-if [ "$ARCH" = "i486" ]; then
- sed -i 's#-Wall -g#-O2 -march=i486 -mtune=i686#' Makefile
+if [ "$ARCH" = "i586" ]; then
+ sed -i 's#-Wall -g#-O2 -march=i586 -mtune=i686#' Makefile
elif [ "$ARCH" = "i686" ]; then
sed -i 's#-Wall -g#-O2 -march=i686 -mtune=i686#' Makefile
elif [ "$ARCH" = "x86_64" ]; then