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>
This commit is contained in:
B. Watson 2017-03-21 04:28:44 -04:00 committed by David Spencer
parent c0c214ce64
commit da4c342d1a

View file

@ -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