# $Id: PKGBUILD 19341 2008-11-20 14:48:13Z andyrtr $ # Maintainer: Jan de Groot # Maintainer: Andreas Radke pkgname=kernel-headers pkgver=2.6.28.2 _basever=2.6.28 pkgrel=1 pkgdesc="Kernel headers sanitized for use in userspace" arch=('i686' 'x86_64') license=('GPL') url="http://www.gnu.org/software/libc" groups=('base') source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${_basever}.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2) md5sums=('d351e44709c9810b85e29b877f50968a' '3a04439a0507847b45809b267c4db81b') build() { cd ${srcdir}/linux-${_basever} patch -Np1 -i ${srcdir}/patch-${pkgver} || return 1 make mrproper make headers_check || return 1 make INSTALL_HDR_PATH=${pkgdir}/usr headers_install rm -rf ${pkgdir}/usr/include/drm }