# Contributor: Roger Pau Monne # Maintainer: Natanael Copa pkgname=acpica pkgver=20221020 pkgrel=1 pkgdesc="ACPI Component Architecture utilities" url="https://www.acpica.org" arch="all" license="GPL-2.0-only OR BSD-3-Clause OR Intel-ACPI" makedepends="flex bison" subpackages="iasl" options="!check" source="acpica-unix-$pkgver.tar.gz::https://acpica.org/sites/acpica/files/acpica-unix-$pkgver.tar_0.gz" builddir="$srcdir"/acpica-unix-$pkgver build() { # binutils 2.40 has a bug specifically on this code # careful with the format here- in abuild.conf we append a new -Wl block for this export LDFLAGS="${LDFLAGS/-Wl,-z,pack-relative-relocs}" make NOWERROR=TRUE } package() { make install DESTDIR="$pkgdir" } iasl() { pkgdesc="ACPI ASL compiler" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/iasl "$subpkgdir"/usr/bin/ } sha512sums=" a86e8510041d5fb5180e2ed56367f9ec031173566f11f304dc50414b0f3416c83c4f31496783dfd1846e6506d7b685cb333462356c3c1578c0026a2a1fd1e588 acpica-unix-20221020.tar.gz "