void-packages/srcpkgs/kernel-libc-headers/template
2012-07-17 15:29:35 +02:00

32 lines
851 B
Text

# Template file for 'kernel-libc-headers'
#
pkgname=kernel-libc-headers
version=3.4.5
revision=1
wrksrc=linux-${version}
homepage="http://www.kernel.org"
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
checksum=43c63e7efe1a8f886f75db417aae97357ca0076011720a13c9af0a564543a59e
bootstrap=yes
nostrip=yes
noverifyrdeps=yes
if [ -n "$IN_CHROOT" ]; then
makedepends="perl"
fi
short_desc="The Linux kernel headers for development"
license="GPL-2"
long_desc="
This package provides the linux kernel headers for use in userspace."
do_build() {
make mrproper
make headers_check
}
do_install() {
make 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
}