summaryrefslogtreecommitdiff
path: root/libraries/libnfnetlink/libnfnetlink.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:41:35 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:41:35 +0200
commitc7b5f27c3a9cb946ef1a6741561bff2eb7260d42 (patch)
tree41ff8fd98a70685e8b937002e6909284487977cc /libraries/libnfnetlink/libnfnetlink.SlackBuild
parent343a6548811653eadc04812bd6931c1c2e568bb1 (diff)
downloadslackbuilds-c7b5f27c3a9cb946ef1a6741561bff2eb7260d42.tar.gz
libraries/libnfnetlink: Updated for version 0.0.41
Diffstat (limited to 'libraries/libnfnetlink/libnfnetlink.SlackBuild')
-rw-r--r--libraries/libnfnetlink/libnfnetlink.SlackBuild16
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