# Maintainer: Natanael Copa pkgname=linux-headers pkgver=2.6.30.5 _kernver=2.6.30 pkgrel=0 pkgdesc="Linux system headers" url="http://kernel.org" license='GPL-2' makedepends="perl" options="!strip !tracedeps" source="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_kernver.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2 " build() { cd $srcdir/linux-$_kernver if [ "$_kernver" != "$pkgver" ]; then bunzip2 -c < ../patch-$pkgver.bz2 | patch -p1 || return 1 fi mkdir -p "$pkgdir/usr" make headers_install INSTALL_HDR_PATH="$pkgdir/usr" find "$pkgdir/usr" \( -name .install -o -name ..install.cmd \) -exec \ rm -f {} \; # provided by libdrm rm -rf "$pkgdir"/usr/include/drm } md5sums="7a80058a6382e5108cdb5554d1609615 linux-2.6.30.tar.bz2 47841c7ff5c81a7b349a79f2fa8e9138 patch-2.6.30.5.bz2"