summaryrefslogtreecommitdiff
path: root/devel/iasl/MAKEPKG
blob: e2e3c82f2579a391d830676313f0abfb15bfc5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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