summaryrefslogtreecommitdiff
path: root/network/darkstat/darkstat.SlackBuild
diff options
context:
space:
mode:
authorJorey Bump <slackbuilds@joreybump.com>2010-05-13 00:36:07 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:36:07 +0200
commitd1db93ae34ec132497eb5cd62e2c5ee8172071da (patch)
treea5e5f5cef57a053e4ea516a8cb1f5e02add6a38a /network/darkstat/darkstat.SlackBuild
parentf6bcb991ded2c26b3b1d2bc2fd7ed5f6c7439eb3 (diff)
downloadslackbuilds-d1db93ae34ec132497eb5cd62e2c5ee8172071da.tar.gz
network/darkstat: Updated for version 3.0.707
Diffstat (limited to 'network/darkstat/darkstat.SlackBuild')
-rw-r--r--network/darkstat/darkstat.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/network/darkstat/darkstat.SlackBuild b/network/darkstat/darkstat.SlackBuild
index efc6daafa5..2550d15c18 100644
--- a/network/darkstat/darkstat.SlackBuild
+++ b/network/darkstat/darkstat.SlackBuild
@@ -19,10 +19,13 @@ DOCS="AUTHORS COPYING.GPL NEWS README THANKS"
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 # Exit on most errors
@@ -44,6 +47,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man
@@ -52,8 +56,10 @@ make
make install DESTDIR=$PKG
( 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
+ 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
)
( cd $PKG/usr/man
@@ -69,4 +75,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}