50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Template file for 'tlp'
|
|
pkgname=tlp
|
|
version=1.4.0
|
|
revision=1
|
|
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://raw.githubusercontent.com/linrunner/TLP/main/changelog"
|
|
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
|
|
checksum=581c38042334c9a65131ddb5cd093c7926b63983e77866b3d7945e9d3f27dfbb
|
|
|
|
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/libexec/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
|
|
}
|
|
}
|