# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20260408
revision=1
build_style="gnu-makefile"
make_use_env=yes
make_build_args="NOWERROR=TRUE BITS=${XBPS_TARGET_WORDSIZE}"
hostmakedepends="flex"
short_desc="Intel ACPI CA Unix utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, BSD-3-Clause"
homepage="https://www.acpica.org/"
changelog="https://github.com/acpica/acpica/releases"
distfiles="https://github.com/acpica/acpica/releases/download/${version}/acpica-unix-${version}.tar.gz"
checksum=e66ceb26d6d514ce164fe22f5a4f7ca165cc38349d7a97f41a21f19b364647a2

post_install() {
	sed -n '/Copyright Notice/,/\*\/$/p' source/include/accommon.h | \
		sed 's/^ \* \?//' | head -n-2 > LICENSE
	vlicense LICENSE
}
