diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-12-15 15:01:43 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-12-15 15:01:43 -0200 |
commit | de78b858e059a461e207175f8e1cee45900dd1c6 (patch) | |
tree | 330233e11c43c9eb15301633e88736c6e9f650a4 /pcr/laptop-mode-tools/PKGBUILD | |
parent | 816ba96fe137817e1ae6008f82d8d3a5f0a17246 (diff) | |
parent | 0750d4a2c68ba3db25d88cc14f8ab9bcc3012f85 (diff) | |
download | abslibre-de78b858e059a461e207175f8e1cee45900dd1c6.tar.gz abslibre-de78b858e059a461e207175f8e1cee45900dd1c6.tar.bz2 abslibre-de78b858e059a461e207175f8e1cee45900dd1c6.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre/abslibre
Diffstat (limited to 'pcr/laptop-mode-tools/PKGBUILD')
-rw-r--r-- | pcr/laptop-mode-tools/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr/laptop-mode-tools/PKGBUILD b/pcr/laptop-mode-tools/PKGBUILD new file mode 100644 index 000000000..6c4c5abee --- /dev/null +++ b/pcr/laptop-mode-tools/PKGBUILD @@ -0,0 +1,61 @@ +# 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> + +pkgname=laptop-mode-tools +pkgver=1.66 +pkgrel=1 +pkgdesc='A kernel mode that allows you to extend the battery life of your laptop' +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') +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 +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') + +package() { + cd "${pkgname}_${pkgver}" + + make DESTDIR="${pkgdir}" MAN_D=/usr/share/man LIB_D=/usr/lib 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' '{}' ';' +} |