# $Id: PKGBUILD 3465 2008-06-22 20:06:08Z jgc $ # Maintainer: Jan de Groot pkgname=kernel-headers pkgver=2.6.25.8 _basever=2.6.25 pkgrel=10 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 netfilter-includes.patch) md5sums=('db95a49a656a3247d4995a797d333153' '007e6aca33604bc09687790361026d3c' '671fa5d449e145199a871d1a41514122') build() { cd ${startdir}/src/linux-${_basever} patch -Np1 -i ${startdir}/src/patch-${pkgver} || return 1 patch -Np1 -i ${startdir}/src/netfilter-includes.patch || return 1 make mrproper make headers_check || return 1 make INSTALL_HDR_PATH=${startdir}/pkg/usr headers_install }