diff options
Diffstat (limited to 'network/ike/ike.SlackBuild')
-rw-r--r-- | network/ike/ike.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/network/ike/ike.SlackBuild b/network/ike/ike.SlackBuild index def5cd3718..8108b14205 100644 --- a/network/ike/ike.SlackBuild +++ b/network/ike/ike.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh -# Slackware build script for ike +# Slackware build script for ike -# Copyright 2014 Vitor Borrego, Corroios, Portugal +# Copyright 2016 Vitor Borrego, Corroios, Portugal # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -29,7 +29,7 @@ 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 @@ -40,8 +40,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" @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -76,10 +76,11 @@ cmake \ -DETCDIR=/etc \ -DMANDIR=/usr/man \ -DQTGUI=YES \ - -DNATT=YES + -DNATT=YES \ + -DLIBDIR=/usr/lib$LIBDIRSUFFIX -make -make install DESTDIR=$PKG +make +make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |