Merge pull request #1727 from thypon/tlp

tlp: move to usr/bin.
This commit is contained in:
Andrea Brancaleoni 2015-06-02 22:30:11 +02:00
commit 8256b4368c
1 changed files with 5 additions and 12 deletions

View File

@ -1,8 +1,8 @@
# Template file for 'tlp'
pkgname=tlp
version=0.7
revision=1
hostmakedepends="git"
revision=2
wrksrc="TLP-${version}"
depends="hdparm bash iw rfkill ethtool"
conf_files="/etc/default/tlp"
conflicts="laptop-mode>=0"
@ -11,18 +11,11 @@ short_desc="Advanced power management tool for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html"
distfiles="https://github.com/linrunner/TLP/archive/${version}.tar.gz"
checksum=bd313f478f897a658f2ca7db9665b8ce6796431b952f7df9aa80e59072cea4ea
do_fetch() {
git clone -b${version} git://github.com/linrunner/TLP.git tlp-${version}
}
do_build() {
sed -i -e 's|/lib/udev|/usr/lib/udev/|' Makefile
sed -i -e 's|/usr/sbin/|/usr/bin|' Makefile
sed -i -e 's|$(SBIN)|$(BIN)|' Makefile
sed -i -e 's|SBIN = $(DESTDIR)/usr/sbin||' Makefile
}
do_install() {
make DESTDIR=${DESTDIR} install-tlp
make DESTDIR=${DESTDIR} TLP_SBIN=/usr/bin TLP_ULIB=/usr/lib/udev install-tlp
vmkdir usr/share/man/man1
install -m644 man/*.1 ${DESTDIR}/usr/share/man/man1