void-packages/srcpkgs/kernel-libc-headers/template

37 lines
915 B
Bash

# Template file for 'kernel-libc-headers'
pkgname=kernel-libc-headers
version=6.1
revision=1
bootstrap=yes
short_desc="Linux API headers for userland development"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="GPL-2.0-only"
homepage="http://www.kernel.org"
distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
if [ "$CHROOT_READY" ]; then
hostmakedepends="perl"
fi
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) _arch="x86";;
arm*) _arch="arm";;
aarch64*) _arch="arm64";;
mips*) _arch="mips";;
ppc*) _arch="powerpc";;
*) msg_error "$pkgname: unknown architecture.\n";;
esac
do_build() {
make mrproper
make ARCH=${_arch} headers
# remove extra files and drm headers
find usr/include -name '.*' -delete
rm usr/include/Makefile
rm -rf usr/include/drm
}
do_install() {
vcopy usr/include usr
}