pkgname=linux-api-headers pkgver=6.12.7 pkgrel=1 pkgdesc="Kernel headers sanitized for use in userspace" arch=('x86_64') url="https://www.gnu.org/software/libc" license=('GPL-2.0-only') source=(https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${pkgver}.tar.xz) sha256sums=(f785fb648a0e0b66a943bb3228a4b6ed62c90b985cd1ebf69da5d38e589da0cf) build() { cd linux-${pkgver} make mrproper make headers } package() { cd linux-${pkgver} install -vdm755 ${pkgdir}/usr find usr/include -type f ! -name '*.h' -delete cp -rv usr/include ${pkgdir}/usr }