# $Id: PKGBUILD 50912 2009-09-03 01:58:11Z eric $ # Maintainer: Eric Belanger # Contributor: Christopher "nuopus" Cox pkgname=laptop-mode-tools pkgver=1.51 pkgrel=1 pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop" arch=('any') url="http://www.samwel.tk/laptop_mode/" license=('GPL') depends=('bash' 'hdparm') 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/ethernet.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/sched-mc-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/usb-autosuspend.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/laptop-mode.conf etc/laptop-mode/lm-profiler.conf) source=(http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz laptop-mode) md5sums=('ae008f8ba3f875f7c3f848ec6cbee076' '241a0e07fc3b340b3381bcde8a74b71d') sha1sums=('8c8a5537bbbd8303970369e0a7b5e7ba486293a5' 'e69239683c320ecc4c27060eb2ace768d06696bc') build() { cd "${srcdir}/${pkgname}_${pkgver}" DESTDIR="${pkgdir}" INIT_D=none MAN_D=/usr/share/man ./install.sh || return 1 install -d "${pkgdir}/var/run/laptop-mode-tools/" || return 1 install -D -m755 "${srcdir}/laptop-mode" "${pkgdir}/etc/rc.d/laptop-mode" || return 1 }