summaryrefslogtreecommitdiff
path: root/system/powertop/powertop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/powertop/powertop.SlackBuild')
-rw-r--r--system/powertop/powertop.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/system/powertop/powertop.SlackBuild b/system/powertop/powertop.SlackBuild
index 0cec42aa82..102f1ae435 100644
--- a/system/powertop/powertop.SlackBuild
+++ b/system/powertop/powertop.SlackBuild
@@ -4,7 +4,7 @@
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM="powertop"
-VERSION="1.10"
+VERSION="1.11"
ARCH=${ARCH:-"i486"}
BUILD=${BUILD:-"1"}
TAG=${TAG:-"_SBo"}
@@ -18,10 +18,13 @@ DOCS="COPYING Changelog README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -54,4 +57,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}