2013-08-24 06:26:07 +00:00
|
|
|
# Template file for 'tlp'
|
|
|
|
pkgname=tlp
|
2015-02-02 08:01:57 +00:00
|
|
|
version=0.7
|
2015-06-02 16:45:29 +00:00
|
|
|
revision=2
|
|
|
|
wrksrc="TLP-${version}"
|
2014-08-28 14:54:03 +00:00
|
|
|
depends="hdparm bash iw rfkill ethtool"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/default/tlp"
|
|
|
|
conflicts="laptop-mode>=0"
|
|
|
|
noarch="yes"
|
2013-08-24 06:26:07 +00:00
|
|
|
short_desc="Advanced power management tool for Linux"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-08-24 06:26:07 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html"
|
2015-06-02 16:45:29 +00:00
|
|
|
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
|
|
|
|
checksum=bd313f478f897a658f2ca7db9665b8ce6796431b952f7df9aa80e59072cea4ea
|
2013-08-24 06:26:07 +00:00
|
|
|
|
|
|
|
do_install() {
|
2015-06-02 16:45:29 +00:00
|
|
|
make DESTDIR=${DESTDIR} TLP_SBIN=/usr/bin TLP_ULIB=/usr/lib/udev install-tlp
|
2013-08-24 06:26:07 +00:00
|
|
|
|
|
|
|
vmkdir usr/share/man/man1
|
|
|
|
install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1
|
|
|
|
vmkdir usr/share/man/man8
|
|
|
|
install -m644 man/*.8 ${DESTDIR}/usr/share/man/man8
|
2015-01-16 22:01:51 +00:00
|
|
|
vsv tlp
|
2013-08-24 06:26:07 +00:00
|
|
|
|
|
|
|
vmkdir usr/share/bash-completion/completions
|
|
|
|
mv ${DESTDIR}/etc/bash_completion.d/tlp ${DESTDIR}/usr/share/bash-completion/completions
|
|
|
|
|
2015-02-02 08:01:57 +00:00
|
|
|
rm -rf ${DESTDIR}/etc/init.d
|
2013-08-24 06:26:07 +00:00
|
|
|
}
|