mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/TLP: Updated for version 0.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
fa49d04625
commit
e7eb39bc54
2 changed files with 11 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for TLP
|
||||
|
||||
# Copyright 2013-2014 Aaditya Bagga <aaditya_gnulinux@zoho.com>
|
||||
# Copyright 2013-2015 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:-0.6}
|
||||
VERSION=${VERSION:-0.7}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -37,7 +37,7 @@ fi
|
|||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/$PRGNAM
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
|
@ -71,7 +71,7 @@ find -L . \
|
|||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Switch to rc.d
|
||||
sed -i -e "s/init.d/rc.d/" Makefile
|
||||
|
@ -81,12 +81,12 @@ sed -i -e "s/usr\/lib/usr\/lib${LIBDIRSUFFIX}/" Makefile
|
|||
|
||||
make install-tlp DESTDIR=$PKG
|
||||
|
||||
# move to rc.tlp
|
||||
install -Dm 644 $PKG/etc/rc.d/tlp $PKG/etc/rc.d/rc.tlp
|
||||
|
||||
# Don't clobber configs
|
||||
mv $PKG/etc/default/tlp $PKG/etc/default/tlp.new
|
||||
mv $PKG/etc/rc.d/rc.tlp $PKG/etc/rc.d/rc.tlp.new
|
||||
|
||||
# move to rc.tlp
|
||||
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}
|
||||
|
@ -98,9 +98,6 @@ 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 -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="TLP"
|
||||
VERSION="0.6"
|
||||
VERSION="0.7"
|
||||
HOMEPAGE="http://linrunner.de/en/tlp/tlp.html"
|
||||
DOWNLOAD="http://github.com/linrunner/TLP/archive/0.6.tar.gz"
|
||||
MD5SUM="52f25c3459f6d9ce31cd2e67a5fcc5e0"
|
||||
DOWNLOAD="http://github.com/linrunner/TLP/archive/0.7.tar.gz"
|
||||
MD5SUM="660ee2e507c02f11c62d70ff4ca8329c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue