aboutsummaryrefslogtreecommitdiff
path: root/system/TLP/TLP.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/TLP/TLP.SlackBuild')
-rw-r--r--system/TLP/TLP.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index 494fb8fa5c79a..341b974bebbc2 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for TLP
-# Copyright 2013-2017 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2013-2019 Aaditya Bagga <aaditya_gnulinux@zoho.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=TLP
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -81,6 +81,9 @@ sed 's|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|' -i tlp.init
export TLP_MAN=/usr/man
make install-tlp install-man DESTDIR=$PKG
+# Install tlp pm-utils hook as we dont have elogind
+install -D -m 755 $CWD/49tlp $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/49tlp
+
# Don't clobber configs
mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
@@ -92,7 +95,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp COPYING LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cp COPYING LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install