summaryrefslogtreecommitdiff
path: root/system/TLP
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2015-02-26 19:08:19 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-26 23:49:57 +0700
commit3e000b39917911e15fc6ca04e4a74c4a85bef083 (patch)
tree75eabdc1b4756ae6337ca920f08b7172ef444e2f /system/TLP
parent9c09d2663f7123c2ce7072344b85463c202bb85c (diff)
downloadslackbuilds-3e000b39917911e15fc6ca04e4a74c4a85bef083.tar.gz
system/TLP: Update slackbuild
Diffstat (limited to 'system/TLP')
-rw-r--r--system/TLP/TLP.SlackBuild19
1 files changed, 5 insertions, 14 deletions
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index 6cabd32c3b..ef4864cbdf 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=TLP
VERSION=${VERSION:-0.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,19 +40,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
+ARCH="noarch"
set -e
@@ -79,6 +67,9 @@ sed -i -e "s/init.d/rc.d/" Makefile
# Fix for x86_64
sed -i -e "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" Makefile
+# Correct sourcing of non-existant file
+sed -i "s|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|" tlp.init
+
make install-tlp DESTDIR=$PKG
# Don't clobber configs