summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/kernel-headers/PKGBUILD
blob: 485a91850c2ad93e4265ee592788b69e61833808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 3465 2008-06-22 20:06:08Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
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
}