diff options
Diffstat (limited to 'libraries/libnfnetlink/libnfnetlink.SlackBuild')
-rw-r--r-- | libraries/libnfnetlink/libnfnetlink.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libraries/libnfnetlink/libnfnetlink.SlackBuild b/libraries/libnfnetlink/libnfnetlink.SlackBuild index 1ee8d8674a..a4cd741532 100644 --- a/libraries/libnfnetlink/libnfnetlink.SlackBuild +++ b/libraries/libnfnetlink/libnfnetlink.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libnfnetlink -# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA +# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libnfnetlink -VERSION=0.0.39 +VERSION=0.0.41 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,10 +35,13 @@ 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" fi set -e @@ -60,6 +63,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static=no \ --build=$ARCH-slackware-linux @@ -67,8 +71,12 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object"| grep ELF | \ - cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README $PKG/usr/doc/$PRGNAM-$VERSION |