diff options
Diffstat (limited to 'network/wifi-radar/wifi-radar.SlackBuild')
-rw-r--r-- | network/wifi-radar/wifi-radar.SlackBuild | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/network/wifi-radar/wifi-radar.SlackBuild b/network/wifi-radar/wifi-radar.SlackBuild index c3a9814294..ff0388b9c1 100644 --- a/network/wifi-radar/wifi-radar.SlackBuild +++ b/network/wifi-radar/wifi-radar.SlackBuild @@ -24,12 +24,12 @@ PRGNAM=wifi-radar VERSION=${VERSION:-2.0.s10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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,20 +40,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -72,11 +58,14 @@ find -L . \ patch --verbose -p1 < $CWD/dhcpcd.diff patch --verbose -p1 < $CWD/kdesu.diff +# It's python so no SLKCFLAGS make -make install DESTDIR=$PKG/usr sbindir=$PKG/opt/wifi-radar sysconfdir=$PKG/etc mandir=$PKG/usr/man +make install \ + DESTDIR=$PKG/usr \ + sbindir=$PKG/usr/bin \ + mandir=$PKG/usr/man -rm -r $PKG/etc -install -m 755 -D $CWD/wifi-radar $PKG/usr/bin/wifi-radar +rm -r $PKG/usr/etc 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 |