void-packages/srcpkgs/acpica-utils/template

28 lines
791 B
Bash

# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20190108
revision=1
wrksrc="acpica-unix-${version}"
hostmakedepends="flex"
short_desc="Intel ACPI CA Unix utilities"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only, BSD-3-Clause"
homepage="https://www.acpica.org/"
distfiles="https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz"
checksum=989822b4044d0c64caad7bf256bed7be05d41efa87843056876e43d6ecc8102f
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
do_build() {
sed -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' -i generate/unix/Makefile.config generate/unix/iasl/Makefile
case "$XBPS_TARGET_MACHINE" in
i686*) make BITS=32;;
*) make BITS=64;;
esac
}
do_install() {
make DESTDIR=${DESTDIR} install
vlicense ${FILESDIR}/LICENSE
}