PKGBUILDs/core/kernel-headers-pogo/PKGBUILD
2010-02-08 04:39:50 -06:00

28 lines
861 B
Bash

# Maintainer: Ian Botley <ianjb@plugapps.com>
pkgname=kernel-headers-pogo
pkgver=2.6.22.18
_basever=2.6.22
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace"
arch=('arm')
conflicts=('kernel-headers')
provides=('kernel-headers')
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=('2e230d005c002fb3d38a3ca07c0200d0'
'639fe3f8e676a349ba74c5405f09dd99')
build() {
cd ${startdir}/src/linux-${_basever}
patch -Np1 -i ${startdir}/src/patch-${pkgver} || return 1
sed -i 's/getline/parseline/g' ${startdir}/src/linux-${_basever}/scripts/unifdef.c
make mrproper
make headers_check || return 1
make INSTALL_HDR_PATH=${startdir}/pkg/usr headers_install
}