2008-12-17 08:12:33 +00:00
|
|
|
# Template file for 'kernel-libc-headers'
|
2012-02-18 16:43:57 +00:00
|
|
|
#
|
2008-12-17 08:12:33 +00:00
|
|
|
pkgname=kernel-libc-headers
|
2012-12-27 08:56:27 +00:00
|
|
|
version=3.7.1
|
2012-07-17 13:29:35 +00:00
|
|
|
revision=1
|
2012-02-18 16:43:57 +00:00
|
|
|
wrksrc=linux-${version}
|
|
|
|
homepage="http://www.kernel.org"
|
|
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
2012-12-27 08:56:27 +00:00
|
|
|
checksum=e1ca8b8376ebdf797357f5f1734ed6eed3cadc16c32d280a780f150372de7255
|
2012-02-28 17:16:32 +00:00
|
|
|
if [ -n "$IN_CHROOT" ]; then
|
2012-05-23 19:31:32 +00:00
|
|
|
makedepends="perl"
|
2011-07-06 21:17:34 +00:00
|
|
|
fi
|
2012-05-23 19:31:32 +00:00
|
|
|
short_desc="The Linux kernel headers for development"
|
|
|
|
license="GPL-2"
|
|
|
|
long_desc="
|
|
|
|
This package provides the linux kernel headers for use in userspace."
|
2011-07-06 21:17:34 +00:00
|
|
|
|
2012-10-16 09:15:05 +00:00
|
|
|
bootstrap=yes
|
|
|
|
nostrip=yes
|
|
|
|
noverifyrdeps=yes
|
|
|
|
|
2012-02-18 16:43:57 +00:00
|
|
|
do_build() {
|
|
|
|
make mrproper
|
|
|
|
make headers_check
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|
|
|
|
|
2012-02-18 16:43:57 +00:00
|
|
|
do_install() {
|
|
|
|
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
2010-10-24 07:02:46 +00:00
|
|
|
# Remove unused files.
|
|
|
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
2012-02-18 16:43:57 +00:00
|
|
|
# Remove drm headers, use libdrm.
|
|
|
|
rm -rf ${DESTDIR}/usr/include/drm
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|