mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:54:37 +08:00
54 lines
2.2 KiB
Bash
54 lines
2.2 KiB
Bash
pkgname=laptop-mode-tools
|
|
pkgver=1.70
|
|
pkgrel=1
|
|
pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
|
|
arch=('x86_64')
|
|
url="https://github.com/rickysarraf/laptop-mode-tools"
|
|
license=('GPL')
|
|
depends=('bash')
|
|
optdepends=('acpid: for ACPI support'
|
|
'hdparm: hard disk power management'
|
|
'sdparm: SCSI disk power management'
|
|
'ethtool: ethernet support'
|
|
'wireless_tools: WiFi support'
|
|
'python2-pyqt4: 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
|
|
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
|
|
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/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)
|
|
install=laptop-mode.install
|
|
source=("https://github.com/rickysarraf/$pkgname/releases/download/$pkgver/${pkgname}_${pkgver}.tar.gz")
|
|
md5sums=('187a03d666ea3da2dffd44db2c5abb1b')
|
|
|
|
package() {
|
|
cd ${pkgname}_${pkgver}
|
|
make DESTDIR=$pkgdir INIT_D=none MAN_D=/usr/share/man LIB_D=/usr/lib install
|
|
|
|
cd gui/
|
|
sed -i '1s|^|#!/usr/bin/python \n|' LMT.py
|
|
install -Dm755 LMT.py $pkgdir/usr/sbin/$pkgname-gui
|
|
}
|