void-packages/srcpkgs/acpica-utils/template
2019-04-05 21:20:54 -03:00

31 lines
783 B
Bash

# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20190405
revision=1
archs="i686* x86_64*"
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=de01ca0e5c4b064f2170b2888c40f595cb896748aa8b4a8e5354a03696549034
do_build() {
vsed -e 's/-Werror//g' \
-i generate/unix/Makefile.config
vsed -e 's/_CYGWIN/_LINUX/g' \
-i 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
}