50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Template file for 'tlp'
|
|
pkgname=tlp
|
|
version=1.5.0
|
|
revision=2
|
|
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=b5f08f00d535c26abc49b336b4c7264c6e5fb7bc3de8054eaabeebdd00e0760e
|
|
|
|
conflicts="laptop-mode>=0"
|
|
conf_files="/etc/tlp.conf /etc/tlp.d/*.conf"
|
|
make_dirs="/var/lib/tlp 0755 root root"
|
|
|
|
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
|
|
}
|
|
}
|