void-packages/srcpkgs/acpica-utils/template
2015-05-16 06:50:25 +02:00

26 lines
708 B
Bash

# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20150515
wrksrc=acpica-unix-${version}
revision=1
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="http://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz"
checksum=bfa1f296a3cc13421331dbaad3b62e0184678cc312104c3e8ac799ead0742c45
do_build() {
sed -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' -i generate/unix/Makefile.config
if [ "$XBPS_TARGET_ARCH" = "i686" ]; then
make BITS=32
else
make BITS=64
fi
}
do_install() {
make DESTDIR=${DESTDIR} install
}