void-packages/srcpkgs/tlp/template
2019-03-18 19:38:34 -03:00

29 lines
975 B
Bash

# Template file for 'tlp'
pkgname=tlp
version=1.2.1
revision=1
archs=noarch
wrksrc="TLP-${version}"
depends="hdparm bash iw util-linux ethtool"
short_desc="Advanced power management tool for Linux"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://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=0fa43c2be7d42223646c6271eb823174076a92c9cea5740c24b5e9e8404c9765
conflicts="laptop-mode>=0"
conf_files="/etc/default/tlp"
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
}