blob: 72ee21653743576daa6964a707537b693286e06f (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
# Contributor: Lev Lybin <lev.lybin@gmail.com>
# Contributor: Aaditya Bagga <aaditya_gnulinux@zoho.com>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
pkgname=laptop-mode-tools
pkgver=1.74
pkgrel=1
pkgdesc='Power saving tool for Linux'
arch=('any')
url='https://github.com/rickysarraf/laptop-mode-tools/'
license=('GPL')
depends=('sh')
optdepends=('acpid: ACPI support'
'bluez-utils: Bluetooth support'
'hdparm: hard disk power management'
'sdparm: SCSI disk power management'
'ethtool: Ethernet support'
'iw: Wi-Fi support'
'xorg-xset: DPMS standby support'
'hal: HAL polling support' # AUR
'python: LMT GUI'
'python-pyqt5: LMT GUI')
makedepends=('procps-ng')
backup=('etc/laptop-mode/conf.d/ac97-powersave.conf'
'etc/laptop-mode/conf.d/auto-hibernate.conf'
'etc/laptop-mode/conf.d/battery-level-polling.conf'
'etc/laptop-mode/conf.d/bluetooth.conf'
'etc/laptop-mode/conf.d/configuration-file-control.conf'
'etc/laptop-mode/conf.d/cpufreq.conf'
'etc/laptop-mode/conf.d/cpuhotplug.conf'
'etc/laptop-mode/conf.d/dpms-standby.conf'
'etc/laptop-mode/conf.d/eee-superhe.conf'
'etc/laptop-mode/conf.d/ethernet.conf'
'etc/laptop-mode/conf.d/exec-commands.conf'
'etc/laptop-mode/conf.d/hal-polling.conf'
'etc/laptop-mode/conf.d/intel_pstate.conf'
'etc/laptop-mode/conf.d/intel-hda-powersave.conf'
'etc/laptop-mode/conf.d/intel-sata-powermgmt.conf'
'etc/laptop-mode/conf.d/kbd-backlight.conf'
'etc/laptop-mode/conf.d/lcd-brightness.conf'
'etc/laptop-mode/conf.d/nmi-watchdog.conf'
'etc/laptop-mode/conf.d/pcie-aspm.conf'
'etc/laptop-mode/conf.d/radeon-dpm.conf'
'etc/laptop-mode/conf.d/runtime-pm.conf'
'etc/laptop-mode/conf.d/sched-mc-power-savings.conf'
'etc/laptop-mode/conf.d/sched-smt-power-savings.conf'
'etc/laptop-mode/conf.d/start-stop-programs.conf'
'etc/laptop-mode/conf.d/terminal-blanking.conf'
'etc/laptop-mode/conf.d/vgaswitcheroo.conf'
'etc/laptop-mode/conf.d/video-out.conf'
'etc/laptop-mode/conf.d/wireless-ipw-power.conf'
'etc/laptop-mode/conf.d/wireless-iwl-power.conf'
'etc/laptop-mode/conf.d/wireless-power.conf'
'etc/laptop-mode/laptop-mode.conf'
'etc/laptop-mode/lm-profiler.conf')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/rickysarraf/laptop-mode-tools/archive/${pkgver}.tar.gz")
sha256sums=('df269e9449fdfab61ec11d6c009dc9a46a0ccf79b6d97fc886cc789cadac9867')
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" MAN_D='/usr/share/man' LIB_D='/usr/lib' PREFIX='/usr' INIT_D='false' install
# use '/bin' instead of '/sbin'
mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
find "$pkgdir" -type f -exec sed -i 's|sbin/laptop_mode|bin/laptop_mode|g' {} +
ln -s ../share/laptop-mode-tools/lmt.py "${pkgdir}/usr/bin/lmt-gui"
}
|