summaryrefslogtreecommitdiff
path: root/pcr/laptop-mode-tools
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/laptop-mode-tools')
-rw-r--r--pcr/laptop-mode-tools/PKGBUILD98
-rw-r--r--pcr/laptop-mode-tools/laptop-mode.install11
2 files changed, 50 insertions, 59 deletions
diff --git a/pcr/laptop-mode-tools/PKGBUILD b/pcr/laptop-mode-tools/PKGBUILD
index 6c4c5abee..f75760d34 100644
--- a/pcr/laptop-mode-tools/PKGBUILD
+++ b/pcr/laptop-mode-tools/PKGBUILD
@@ -1,61 +1,63 @@
-# Maintainer : Aurelien Desbrieres <aurelien@hackers.camp>
-# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
-# Contributor: Eric Bélanger <eric@archlinux.org>
-# Contributor: Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Maintainer (Arch): Lev Lybin <lev.lybin@gmail.com>
+# Contributor (Arch): Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor (Arch): Eric Bélanger <eric@archlinux.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=laptop-mode-tools
pkgver=1.66
-pkgrel=1
-pkgdesc='A kernel mode that allows you to extend the battery life of your laptop'
+pkgrel=3
+_pkgrel=2
+pkgdesc='Power Savings tool for Linux'
arch=('any')
url='https://github.com/rickysarraf/laptop-mode-tools'
-source=("http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz")
-sha1sums=('8be0a9aa4c19d0ed1a7aa28dc192df7822b2338d')
-license=('GPL')
+source=(https://github.com/rickysarraf/laptop-mode-tools/archive/debian/${pkgver}-${_pkgrel}.tar.gz)
+sha256sums=('c9fa63f501bfbb14167eedefb04f7df8e9d1abd23f2a77896b874b61c076882a')
+license=('GPL2')
depends=('bash')
optdepends=('acpid: ACPI support'
- 'bluez-utils: Bluetooth support'
- 'hdparm: hard disk power management'
- 'sdparm: SCSI disk power management'
- 'ethtool: Ethernet support'
- 'wireless_tools: Wi-Fi support'
- 'xorg-xset: DPMS standby support'
- )
-install=laptop-mode.install
+ 'bluez-utils: Bluetooth support'
+ 'hdparm: hard disk power management'
+ 'sdparm: SCSI disk power management'
+ 'ethtool: Ethernet support'
+ 'wireless_tools: Wi-Fi support'
+ 'xorg-xset: DPMS standby support'
+ 'python2-pyside: LMT GUI')
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')
+ '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')
package() {
- cd "${pkgname}_${pkgver}"
+ cd "laptop-mode-tools-debian-${pkgver}-${_pkgrel}"
- make DESTDIR="${pkgdir}" MAN_D=/usr/share/man LIB_D=/usr/lib install
+ 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' '{}' ';'
- # 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' '{}' ';'
+ install -Dm755 gui/LMT.py "${pkgdir}/usr/bin/lmt-gui"
}
diff --git a/pcr/laptop-mode-tools/laptop-mode.install b/pcr/laptop-mode-tools/laptop-mode.install
deleted file mode 100644
index 72934dd5c..000000000
--- a/pcr/laptop-mode-tools/laptop-mode.install
+++ /dev/null
@@ -1,11 +0,0 @@
-## arg 1: the new package version
-## arg 2: the old package version
-post_upgrade() {
- if [ $(vercmp $2 1.62) -lt 0 ] ; then
- echo "The systemd service name has changed from \"laptop-mode-tools\" to \"laptop-mode\""
- echo "The change requires the old symlink to be manually removed:"
- echo " rm /etc/systemd/system/multi-user.target.wants/laptop-mode-tools.service"
- echo "The laptop-mode.service can be enabled using:"
- echo " systemctl enable laptop-mode"
- fi
-}