# Template file for 'acpid'
pkgname=acpid
version=2.0.34
revision=3
build_style=gnu-configure
short_desc="ACPI Daemon (acpid) With Netlink Support"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/acpid2/"
changelog="https://sourceforge.net/p/acpid2/code/ci/master/tree/Changelog?format=raw"
distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
checksum=2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"

post_install() {
	vinstall ${FILESDIR}/handler.sh 755 etc/acpi
	vinstall ${FILESDIR}/anything 644 etc/acpi/events
	vsv acpid
}
