29 lines
957 B
Bash
29 lines
957 B
Bash
# Template file for 'tlp'
|
|
pkgname=tlp
|
|
version=1.1
|
|
revision=1
|
|
wrksrc="TLP-${version}"
|
|
depends="hdparm bash iw util-linux ethtool"
|
|
conf_files="/etc/default/tlp"
|
|
conflicts="laptop-mode>=0"
|
|
noarch="yes"
|
|
short_desc="Advanced power management tool for Linux"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2"
|
|
homepage="http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html"
|
|
#changelog="https://github.com/linrunner/TLP/blob/master/changelog"
|
|
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
|
|
checksum=76e1a091eed1055f7af75f49621be51ed41b1e8f872eeb9506c0749060fd1019
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} TLP_SBIN=/usr/bin TLP_ULIB=/usr/lib/udev TLP_SHCPL=/usr/share/bash-completion/completions install-tlp
|
|
|
|
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
|
|
vsv tlp
|
|
|
|
rm -rf ${DESTDIR}/etc/init.d
|
|
}
|