49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'tlp'
|
|
pkgname=tlp
|
|
version=1.3.1
|
|
revision=2
|
|
wrksrc="TLP-${version}"
|
|
depends="hdparm bash iw util-linux ethtool perl"
|
|
short_desc="Advanced power management tool for Linux"
|
|
maintainer="Alan Brown <adbrown@rocketmail.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=4c783606ca6e98a3ddb3dc911785b4d7a73fec4ebb9decfca4ca15e315ece768
|
|
|
|
conflicts="laptop-mode>=0"
|
|
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
|
|
|
|
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
|
|
|
|
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
|
|
install -m644 man-rdw/*.8 ${DESTDIR}/usr/share/man/man8
|
|
rm -f ${DESTDIR}/usr/share/man/man8/*.service.8
|
|
|
|
vsv tlp
|
|
|
|
rm -rf ${DESTDIR}/etc/init.d
|
|
}
|
|
|
|
tlp-rdw_package() {
|
|
short_desc="Control the radio device wizard"
|
|
depends="tlp NetworkManager"
|
|
pkg_install() {
|
|
vmove usr/bin/tlp-rdw
|
|
vmove usr/lib/udev/rules.d/85-tlp-rdw.rules
|
|
vmove usr/lib/udev/tlp-rdw-udev
|
|
vmove etc/NetworkManager/dispatcher.d/99tlp-rdw-nm
|
|
vmove usr/share/man/man8/tlp-rdw.8
|
|
}
|
|
}
|