core/laptop-mode-tools/PKGBUILD

60 lines
2.5 KiB
Bash
Raw Normal View History

pkgname=laptop-mode-tools
2018-02-08 08:55:15 +08:00
pkgver=1.72.2
2014-11-27 04:28:51 +08:00
pkgrel=1
pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
2013-10-14 02:29:14 +08:00
arch=('x86_64')
2016-08-07 17:44:46 +08:00
url="https://github.com/rickysarraf/laptop-mode-tools"
license=('GPL')
2013-10-14 02:29:14 +08:00
depends=('bash')
optdepends=('acpid: for ACPI support'
2018-02-08 08:55:15 +08:00
'bluez-utils: Bluetooth support'
2013-10-14 02:29:14 +08:00
'hdparm: hard disk power management'
'sdparm: SCSI disk power management'
'ethtool: ethernet support'
'wireless_tools: WiFi support'
2018-02-08 08:55:15 +08:00
'xorg-xset: DPMS standby support'
'python3-pyqt5: for GUI support')
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
2017-01-14 21:18:33 +08:00
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-hda-powersave.conf
etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
2017-01-14 21:18:33 +08:00
etc/laptop-mode/conf.d/intel_pstate.conf
etc/laptop-mode/conf.d/kbd-backlight.conf
etc/laptop-mode/conf.d/lcd-brightness.conf
2013-10-14 02:29:14 +08:00
etc/laptop-mode/conf.d/nmi-watchdog.conf
etc/laptop-mode/conf.d/pcie-aspm.conf
2017-01-14 21:18:33 +08:00
etc/laptop-mode/conf.d/radeon-dpm.conf
2013-10-14 02:29:14 +08:00
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/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)
2013-10-14 02:29:14 +08:00
install=laptop-mode.install
2016-08-07 17:44:46 +08:00
source=("https://github.com/rickysarraf/$pkgname/releases/download/$pkgver/${pkgname}_${pkgver}.tar.gz")
2018-02-08 08:55:15 +08:00
md5sums=('1c630ed63db14d644df2326bcd7c3f75')
package() {
2013-10-22 01:33:21 +08:00
cd ${pkgname}_${pkgver}
2016-08-07 17:44:46 +08:00
make DESTDIR=$pkgdir INIT_D=none MAN_D=/usr/share/man LIB_D=/usr/lib install
2015-10-05 07:00:03 +08:00
2016-08-07 17:44:46 +08:00
cd gui/
sed -i '1s|^|#!/usr/bin/python \n|' LMT.py
2016-08-07 17:44:46 +08:00
install -Dm755 LMT.py $pkgdir/usr/sbin/$pkgname-gui
}