Added acpica-utils-20100121 build template.

--HG--
extra : convert_revision : af05c8cc9c4b8a12232d72b8c602e72f3251c70e
This commit is contained in:
Juan RP 2010-02-25 07:18:32 +01:00
parent 6a78214a1a
commit 9d6197a1e4

View file

@ -0,0 +1,41 @@
# Template file for 'acpica-utils'
pkgname=acpica-utils
version=20100121
wrksrc=acpica-unix-${version}
# Sigh, can't use official URL!
#distfiles="http://acpica.org/downloads/acpica-unix-${version}.tar.gz"
distfiles="http://xbps.nopcode.org/downloads/acpica-unix-${version}.tar.gz"
build_style=custom-install
short_desc="Intel ACPI CA Unix utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=97fdbf6768f26f15ebf6aa106461e10f8e84bfb2766c7f8fe313fcd08e381d2e
long_desc="
This package provides the ACPICA user-space utilities built upon
the same kernel code. The ACPI Component Architecture is used for
managing hardware and events. The following utilities are provided:
* ASL Compiler/Disassembler
* ACPI Simulator (AcpiExec)
* ACPI Table Extractor"
Add_dependency run glibc
Add_dependency build flex
do_build()
{
cd ${wrksrc}/tools/acpiexec && make && \
cp -f acpiexec ${wrksrc} && make clean || return 1
cd ${wrksrc}
for _dir_ in compiler tools/acpisrc tools/acpixtract; do
make -C ${_dir_} || return 1
done
}
do_install()
{
install -d ${DESTDIR}/usr/sbin
install -m755 ${wrksrc}/acpiexec ${DESTDIR}/usr/sbin
install -m755 ${wrksrc}/tools/acpisrc/acpisrc ${DESTDIR}/usr/sbin
install -m755 ${wrksrc}/tools/acpixtract/acpixtract ${DESTDIR}/usr/sbin
install -m755 ${wrksrc}/compiler/iasl ${DESTDIR}/usr/sbin
}