aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/laptop-mode/template
blob: 5a91b88fd1690687fba216347561e970d669f9e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Template file for 'laptop-mode'
pkgname=laptop-mode
version=1.73.1
revision=2
depends="acpid hdparm sdparm wireless_tools xset bluez"
short_desc="Laptop power saving package for Linux systems"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/rickysarraf/laptop-mode-tools/wiki"
distfiles="https://github.com/rickysarraf/laptop-mode-tools/releases/download/${version}/${pkgname}-tools_$version.tar.gz"
checksum=c9735a5dda49f35aac8c06baf169e34697681b700db4c5f8640a6723a20eeda2
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/conf.d/kbd-backlight.conf
	/etc/laptop-mode/conf.d/vgaswitcheroo.conf
	/etc/laptop-mode/laptop-mode.conf"

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 SYSTEMD=no \
		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
}