summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/kernel-headers/PKGBUILD
blob: 21f8c8056ae549e4fb9e997e33a909a72b7d4881 (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
28
29
30
# $Id: PKGBUILD 19341 2008-11-20 14:48:13Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=kernel-headers
pkgver=2.6.28.4
_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 serial.diff)
md5sums=('d351e44709c9810b85e29b877f50968a'
         '65afbbf63a73ee7be7227531622049fe'
	 'd66b5cc1e1c2ce40d06d77167f36dfd9')

build() {
  cd ${srcdir}/linux-${_basever}
  patch -Np1 -i ${srcdir}/patch-${pkgver} || return 1
  patch -p0 < ../../serial.diff

  make mrproper
  make headers_check || return 1
  make INSTALL_HDR_PATH=${pkgdir}/usr headers_install

  rm -rf ${pkgdir}/usr/include/drm
}