void-packages/srcpkgs/laptop-mode/template

51 lines
2.0 KiB
Bash

# Template file for 'laptop-mode'
pkgname=laptop-mode
version=1.67
revision=1
noarch=yes
wrksrc="${pkgname}-tools_${version}"
short_desc="Laptop power saving package for Linux systems"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://samwel.tk/laptop_mode/"
distfiles="${homepage}/tools/downloads/$pkgname-tools_$version.tar.gz"
checksum=5205e5b4fa0eddcbb14e06a496a9e405cf3873eb5065e03e6a1237e29c8f3cd0
conf_files="
/etc/laptop-mode/lm-profiler.conf
/etc/laptop-mode/conf.d/lcd-brightness.conf
/etc/laptop-mode/conf.d/video-out.conf
/etc/laptop-mode/conf.d/wireless-iwl-power.conf
/etc/laptop-mode/conf.d/nmi-watchdog.conf
/etc/laptop-mode/conf.d/dpms-standby.conf
/etc/laptop-mode/conf.d/runtime-pm.conf
/etc/laptop-mode/conf.d/ethernet.conf
/etc/laptop-mode/conf.d/eee-superhe.conf
/etc/laptop-mode/conf.d/hal-polling.conf
/etc/laptop-mode/conf.d/cpufreq.conf
/etc/laptop-mode/conf.d/battery-level-polling.conf
/etc/laptop-mode/conf.d/intel-hda-powersave.conf
/etc/laptop-mode/conf.d/configuration-file-control.conf
/etc/laptop-mode/conf.d/bluetooth.conf
/etc/laptop-mode/conf.d/wireless-ipw-power.conf
/etc/laptop-mode/conf.d/start-stop-programs.conf
/etc/laptop-mode/conf.d/ac97-powersave.conf
/etc/laptop-mode/conf.d/auto-hibernate.conf
/etc/laptop-mode/conf.d/intel-sata-powermgmt.conf
/etc/laptop-mode/conf.d/wireless-power.conf
/etc/laptop-mode/conf.d/sched-smt-power-savings.conf
/etc/laptop-mode/conf.d/sched-mc-power-savings.conf
/etc/laptop-mode/conf.d/terminal-blanking.conf
/etc/laptop-mode/conf.d/exec-commands.conf
/etc/laptop-mode/laptop-mode.conf"
depends="acpid hdparm sdparm wireless_tools xset bluez"
do_install() {
sed -i 's|/lib|/usr/lib|g' etc/rules/99-laptop-mode.rules
sed -i 's|/sbin/udevadm|/usr/bin/udevadm|g' usr/share/laptop-mode-tools/modules/hdparm
DESTDIR=${DESTDIR} ACPI=force APM=disabled INIT_D=none \
INSTALL=install LIB_D=/usr/lib MAN_D=/usr/share/man $wrksrc/install.sh
vmkdir usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin/
vsv laptop-mode
}