void-packages/srcpkgs/tlp/template
Lugubris d78cb0d201 Drop maintainership of orphaned packages
some packages were dropped but their maintainer= was not updated in template.
this will help new maintainers adopt these packages.

-> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
2019-08-25 21:16:43 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'tlp'
pkgname=tlp
version=1.2.2
revision=2
archs=noarch
wrksrc="TLP-${version}"
depends="hdparm bash iw util-linux ethtool perl"
short_desc="Advanced power management tool for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
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=5c28bdda51661160f75b10634fa0fffad96e83204a7c704dad0095de6fee3315
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 \
TLP_ELOD=/usr/lib/elogind/system-sleep \
TLP_WITH_SYSTEMD=0 \
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
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
vsv tlp
rm -rf ${DESTDIR}/etc/init.d
}