summaryrefslogtreecommitdiff
path: root/devel/iasl/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'devel/iasl/MAKEPKG')
-rw-r--r--devel/iasl/MAKEPKG33
1 files changed, 33 insertions, 0 deletions
diff --git a/devel/iasl/MAKEPKG b/devel/iasl/MAKEPKG
new file mode 100644
index 0000000..e2e3c82
--- /dev/null
+++ b/devel/iasl/MAKEPKG
@@ -0,0 +1,33 @@
+#!/bin/mkpkg
+# description: Intel ACPI Source Language compiler (iasl)
+# url: https://www.acpica.org
+name=iasl
+version=20251212
+release=1
+makedeps=(bison flex)
+source=(https://github.com/acpica/acpica/archive/refs/tags/$version.tar.gz)
+sha256sums=(
+ "6f77bd550655183c63f0a307fb0f29ef6140b1f522d61783a16b2af8d9149a0d"
+)
+build() {
+ cd acpica-$version
+
+ # remove GCC-only warning flags — clang doesn't know them
+ sed -i \
+ -e 's/-Wlogical-op//g' \
+ -e 's/-Wmissing-parameter-type//g' \
+ -e 's/-Wold-style-declaration//g' \
+ generate/unix/Makefile.config
+
+ make iasl \
+ CC=clang \
+ CCFLAGS="-O2" \
+ $MKPKG_MAKEFLAGS
+
+ install -Dm755 generate/unix/bin/iasl $PKG/usr/bin/iasl
+}
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+# vim: filetype=sh