void-packages/srcpkgs/acpica-utils/template

41 lines
1.3 KiB
Text
Raw Normal View History

# 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"
2010-06-02 22:37:35 +00:00
distfiles="http://xbps.nopcode.org/distfiles/acpica-unix-${version}.tar.gz"
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
}