Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions srcpkgs/panafanpwr/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
If you find that panafanpwrd does not persist your power profile after resuming
from suspend, you will need to implement a resume hook for elogind or zzz that
runs `panafanpwr reset --resume`. This forces the daemon to re-apply your power
profile.
6 changes: 6 additions & 0 deletions srcpkgs/panafanpwr/files/panafanpwrd/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
exec 2>&1

modprobe -q acpi_call || exit 1

exec panafanpwrd
32 changes: 32 additions & 0 deletions srcpkgs/panafanpwr/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Template file for 'panafanpwr'
pkgname=panafanpwr
version=0.2.1
revision=1
archs="x86_64* i686*"
conf_files="/etc/panafanpwrd.conf"
depends="python3 tlp-pd acpi_call-dkms"
short_desc="Fan and power profile control for the Panasonic laptops"
maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~szern/panafanpwr"
changelog="https://git.sr.ht/~szern/panafanpwr/blob/main/CHANGELOG.md"
distfiles="https://git.sr.ht/~szern/panafanpwr/archive/v${version}.tar.gz"
checksum=81ac71edabf2c8c94c50cce348c5601c7226af4857b025846c2476749496963b

post_patch() {
vsed -i "src/panafanpwrd.py" "src/panafanpwr.py" \
-e "s/__version__ = \"unknown\"/__version__ = \"${version}\"/"
}

do_build() {
:
}

do_install() {
vbin "src/panafanpwrd.py" "panafanpwrd"
vbin "src/panafanpwr.py" "panafanpwr"

vconf "conf/panafanpwrd.conf"
vsv panafanpwrd
vdoc "${FILESDIR}/README.voidlinux"
}