39 lines
1009 B
Bash
39 lines
1009 B
Bash
# Template file for 'kernel-libc-headers'
|
|
pkgname=kernel-libc-headers
|
|
version=4.19.0
|
|
revision=2
|
|
bootstrap=yes
|
|
nostrip=yes
|
|
noverifyrdeps=yes
|
|
noshlibprovides=yes
|
|
wrksrc=linux-${version%.*}
|
|
short_desc="The Linux API headers for userland development"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.kernel.org"
|
|
distfiles="$KERNEL_SITE/kernel/v4.x/linux-${version%.*}.tar.xz"
|
|
checksum=0c68f5655528aed4f99dae71a5b259edc93239fa899e2df79c055275c21749a1
|
|
|
|
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";;
|
|
*) msg_error "$pkgname: unknown architecture.\n";;
|
|
esac
|
|
|
|
do_build() {
|
|
make mrproper
|
|
make ARCH=${_arch} headers_check
|
|
}
|
|
do_install() {
|
|
make ARCH=${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
|
# Remove unused files.
|
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
|
# Remove drm headers, use libdrm.
|
|
rm -rf ${DESTDIR}/usr/include/drm
|
|
}
|