From e53aca82c855328e58cb1f3b24c2ad503d4585f0 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Tue, 2 Jun 2015 18:45:29 +0200 Subject: [PATCH] tlp: move to usr/bin. --- srcpkgs/tlp/template | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template index 7fd8e5152bb..30f57629ceb 100644 --- a/srcpkgs/tlp/template +++ b/srcpkgs/tlp/template @@ -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 " 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