pkg_name=linux-headers
version=6.18.54
revision=1
build_style=custom
short_desc="Linux kernel headers"
home_page="https://kernel.org"
license="GPL-2.0-only"
dist_files="https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-${version}.tar.xz"
checksum="e0fc50fd81511a39f81f94811779de2d52ad4fa67ec9188744fb8096505d9737"
wrk_src="linux-${version}"

do_build() { $make_cmd HOSTCC="$CC" headers; }

do_install() {
    find usr/include -name '*.h' -type f | while read -r f; do
        binstall "$f" 0644 "/${f%/*}"
    done
}
