summaryrefslogtreecommitdiff
path: root/system/TLP/TLP.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2019-04-07 22:44:43 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-04-13 06:30:33 +0700
commit2da3606262095b637a9773df2930b25c95a6aca5 (patch)
treeb14024e4f497985d8d979fae4ffed5b995ba2599 /system/TLP/TLP.SlackBuild
parent9603c05d179a46358b3734a2e9d61f831d613a57 (diff)
downloadslackbuilds-2da3606262095b637a9773df2930b25c95a6aca5.tar.gz
system/TLP: updated for version 1.2.1.
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 494fb8fa5c..341b974beb 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