summaryrefslogtreecommitdiff
path: root/system/TLP/TLP.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/TLP/TLP.SlackBuild')
-rw-r--r--system/TLP/TLP.SlackBuild15
1 files changed, 3 insertions, 12 deletions
diff --git a/system/TLP/TLP.SlackBuild b/system/TLP/TLP.SlackBuild
index cab9621f33..c3b97dc12d 100644
--- a/system/TLP/TLP.SlackBuild
+++ b/system/TLP/TLP.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=TLP
-VERSION=${VERSION:-0.8}
+VERSION=${VERSION:-0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -82,7 +82,8 @@ sed "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" -i Makefile
# Correct sourcing of non-existant file
sed 's|. \/lib\/lsb\/init-functions|#. \/lib\/lsb\/init-functions|' -i tlp.init
-make install-tlp DESTDIR=$PKG
+export TLP_MAN=/usr/man
+make install-tlp install-man DESTDIR=$PKG
# Don't clobber configs
mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
@@ -91,16 +92,6 @@ mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
mv $PKG/etc/rc.d/tlp $PKG/etc/rc.d/rc.tlp.new
chmod 644 $PKG/etc/rc.d/rc.tlp.new
-# install man files
-mkdir -p $PKG/usr/man/man{1,8}
-install -m 644 man/bluetooth.1 $PKG/usr/man/man1/
-install -m 644 man/run-on-ac.1 $PKG/usr/man/man1/
-install -m 644 man/run-on-bat.1 $PKG/usr/man/man1/
-install -m 644 man/wifi.1 $PKG/usr/man/man1/
-install -m 644 man/wwan.1 $PKG/usr/man/man1/
-install -m 644 man/tlp.8 $PKG/usr/man/man8/
-install -m 644 man/tlp-stat.8 $PKG/usr/man/man8/
-
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