aboutsummaryrefslogtreecommitdiff
path: root/system/irqbalance/irqbalance.SlackBuild
diff options
context:
space:
mode:
authorYalla-One <yallaone@gmail.com>2010-05-13 00:40:41 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:40:41 +0200
commit595d80cd44d849f0e842548d732774b7538e91b8 (patch)
tree85929770256fdeef6cf98b1ee3155919ad654c51 /system/irqbalance/irqbalance.SlackBuild
parent95e499119f69933f55b8b72db3a79a1733512203 (diff)
system/irqbalance: Updated for version 0.55
Diffstat (limited to 'system/irqbalance/irqbalance.SlackBuild')
-rw-r--r--system/irqbalance/irqbalance.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/irqbalance/irqbalance.SlackBuild b/system/irqbalance/irqbalance.SlackBuild
index c08ed431ca124..998ff492a6211 100644
--- a/system/irqbalance/irqbalance.SlackBuild
+++ b/system/irqbalance/irqbalance.SlackBuild
@@ -35,8 +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
@@ -59,12 +64,13 @@ cp $PRGNAM $PKG/usr/sbin
strip --strip-unneeded ${PKG}/usr/sbin/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/README $CWD/$PRGNAM.SlackBuild \
+cp $CWD/README \
$PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}