diff options
author | David Woodfall <dave@dawoodfall.net> | 2018-03-27 13:45:24 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-31 07:41:33 +0700 |
commit | c05940d3cf242f8b8e9fa113d9a3086f4a4034a4 (patch) | |
tree | c51d72ca2e2ee135b5b285e78de00328cb633e23 /network/wifi-radar/wifi-radar.SlackBuild | |
parent | d3055aab03858420004a3ee325294fd4eda8cccf (diff) | |
download | slackbuilds-c05940d3cf242f8b8e9fa113d9a3086f4a4034a4.tar.gz |
network/wifi-radar: Updated SlackBuild.
Removed SLKCFLAGS. Make options improved.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
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 |