mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
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:
parent
c0c214ce64
commit
da4c342d1a
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue