blob: 5a81c2ee34ef3eb8764bea12ef5cf336df0b7e80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Marc Schulte <bomba@nerdstube.de>
pkgbase=tlp-git
pkgname=('tlp-git' 'tlp-rdw-git')
pkgver=0.8.r51.f54b606
pkgrel=1
arch=('any')
url='http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html'
license=('GPL2' 'GPL3')
makedepends=('git')
source=('tlp::git+https://github.com/linrunner/TLP.git')
sha256sums=('SKIP')
pkgver() {
cd tlp
tag='0.8'
echo "$(git describe --tags | sed 's/-/.r/; s/-g/./')"
}
package_tlp-git() {
pkgdesc='Linux Advanced Power Management'
depends=('hdparm' 'iw' 'pciutils' 'rfkill' 'usbutils' 'util-linux')
optdepends=('acpi_call: Sandy Bridge and newer ThinkPad battery functions'
'ethtool: Disable Wake On Lan'
'lsb-release: Display LSB release version in tlp-stat'
'smartmontools: Display S.M.A.R.T. data in tlp-stat'
'tp_smapi: ThinkPad battery functions'
'x86_energy_perf_policy: Set energy versus performance policy on x86 processors')
provides=('tlp')
conflicts=('laptop-mode-tools' 'pm-utils' 'tlp')
backup=('etc/default/tlp')
cd tlp
export TLP_SBIN='/usr/bin'
export TLP_ULIB='/usr/lib/udev'
export TLP_SYSD='/usr/lib/systemd/system'
export TLP_NO_INIT='1'
export TLP_NO_PMUTILS='1'
export TLP_WITH_SYSTEMD='1'
make DESTDIR="${pkgdir}" install-tlp install-man
}
package_tlp-rdw-git() {
pkgdesc='Linux Advanced Power Management - Radio Device Wizard'
depends=('networkmanager' 'tlp')
provides=('tlp-rdw')
conflicts=('tlp-rdw')
cd tlp
make DESTDIR="${pkgdir}" install-rdw
}
# vim: ts=2 sw=2 et:
|