tlp: update to 1.3.1

Fixed indentation

New package: tlp-rdw-1.2.2

Install all binaries then move files

Installed man-rdw

updated version

moved conf files

Put the correct path in update
This commit is contained in:
Alan Brown 2019-12-29 18:25:06 +00:00 committed by Juan RP
parent b3914a989b
commit 057cb808b2
3 changed files with 28 additions and 11 deletions

1
srcpkgs/tlp-rdw Symbolic link
View file

@ -0,0 +1 @@
tlp

View file

@ -1,37 +1,51 @@
# Template file for 'tlp'
pkgname=tlp
version=1.2.2
revision=2
version=1.3.1
revision=1
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>"
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=5c28bdda51661160f75b10634fa0fffad96e83204a7c704dad0095de6fee3315
checksum=4c783606ca6e98a3ddb3dc911785b4d7a73fec4ebb9decfca4ca15e315ece768
conflicts="laptop-mode>=0"
conf_files="/etc/default/tlp"
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-tlp
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"
archs=noarch
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
}
}

2
srcpkgs/tlp/update Normal file
View file

@ -0,0 +1,2 @@
site='https://github.com/linrunner/TLP/releases'
pattern='archive/\K[\d.]+(?=\.tar\.gz)'