Files
LFS-PKGBUILDs/sys-kernel/linux-headers-6.16.PKGBUILD

28 lines
685 B
Bash

pkgname=linux-header
pkgver=6.16
kernel_ver=6.16.1
pkgdesc="Full sources including the Gentoo patchset for the ${pkgver} kernel tree"
homepage="https://www.kernel.org/"
license=(GPL-2.0-only)
_srcname=linux-${pkgver}
sources=("linux-${kernel_ver}.tar.xz")
urls=("https://www.kernel.org/pub/linux/kernel/v6.x/${sources[0]}")
md5sums=("32d45755e4b39d06e9be58f6817445ee")
options=(!strip) # there are no bineries
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
make headers
find usr/include -type f ! -name '*.h' -delete
}
src_install() {
install -vdm755 "${pkgdir}/usr"
mv -v usr/include "${pkgdir}/usr/"
}
# vim:ft=sh syn=sh et sw=2: