2008-12-17 09:12:33 +01:00
|
|
|
# Template file for 'kernel-libc-headers'
|
2012-02-18 17:43:57 +01:00
|
|
|
#
|
2008-12-17 09:12:33 +01:00
|
|
|
pkgname=kernel-libc-headers
|
2012-02-18 17:43:57 +01:00
|
|
|
version=3.2.6
|
|
|
|
wrksrc=linux-${version}
|
|
|
|
homepage="http://www.kernel.org"
|
|
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
|
|
|
checksum=9db97d45638017e6dfaed768cfa9f47533c9c9fb3538bce0e594d9feff5489b4
|
2008-12-17 09:12:33 +01:00
|
|
|
short_desc="The Linux kernel headers for development"
|
2012-02-18 17:43:57 +01:00
|
|
|
license="GPL-2"
|
2008-10-23 17:14:00 +02:00
|
|
|
long_desc="
|
|
|
|
This package provides the linux kernel headers for use in userspace."
|
2008-10-27 07:42:40 +01:00
|
|
|
|
2011-07-06 08:16:56 +02:00
|
|
|
bootstrap=yes
|
2009-12-04 00:25:09 +01:00
|
|
|
nostrip=yes
|
2011-10-25 13:16:48 +02:00
|
|
|
noverifyrdeps=yes
|
2010-10-24 09:02:46 +02:00
|
|
|
|
2011-07-06 23:17:34 +02:00
|
|
|
if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then
|
|
|
|
Add_dependency build perl ">=0"
|
|
|
|
fi
|
|
|
|
|
2012-02-18 17:43:57 +01:00
|
|
|
do_build() {
|
|
|
|
make mrproper
|
|
|
|
make headers_check
|
2010-10-24 09:02:46 +02:00
|
|
|
}
|
|
|
|
|
2012-02-18 17:43:57 +01:00
|
|
|
do_install() {
|
|
|
|
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
2010-10-24 09:02:46 +02:00
|
|
|
# Remove unused files.
|
|
|
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
2012-02-18 17:43:57 +01:00
|
|
|
# Remove drm headers, use libdrm.
|
|
|
|
rm -rf ${DESTDIR}/usr/include/drm
|
2010-10-24 09:02:46 +02:00
|
|
|
}
|