void-packages/srcpkgs/acpica-utils/template
maxice8 e847d93e55 acpica-utils: update to 20180313.
Closes: #12498 [via git-merge-pr]
2018-03-15 19:14:33 -07:00

26 lines
782 B
Bash

# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20180313
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, 3-clause-BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz"
checksum=958b5b75617732f6024484c32476cf0759b5777eb827a5e45f1cf3b45d174b15
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
}