void-packages/srcpkgs/acpica-utils/template
2016-12-31 10:21:19 +00:00

25 lines
710 B
Bash

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