summaryrefslogtreecommitdiff
path: root/network/wol/wol.SlackBuild
diff options
context:
space:
mode:
authorBrian Muramatsu <btmura@gmail.com>2010-05-13 00:38:45 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:38:45 +0200
commitdce53a7c88738cf533906b9e9a01bda2701b7836 (patch)
treebf73dfb901d78a67c24458a3c2bf2eb256c0e032 /network/wol/wol.SlackBuild
parent869d3d74a97048f81cf53b8a1f941f61117f6937 (diff)
downloadslackbuilds-dce53a7c88738cf533906b9e9a01bda2701b7836.tar.gz
network/wol: Updated for version 0.7.1
Diffstat (limited to 'network/wol/wol.SlackBuild')
-rw-r--r--network/wol/wol.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/network/wol/wol.SlackBuild b/network/wol/wol.SlackBuild
index a1046ec98e..5278b6cc33 100644
--- a/network/wol/wol.SlackBuild
+++ b/network/wol/wol.SlackBuild
@@ -16,11 +16,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i386" ]; then
- SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -41,6 +44,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -50,8 +54,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
- 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
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man || exit 1
@@ -72,4 +78,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}