diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /core/linux-api-headers | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'core/linux-api-headers')
-rw-r--r-- | core/linux-api-headers/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/linux-api-headers/PKGBUILD b/core/linux-api-headers/PKGBUILD new file mode 100644 index 000000000..04f9e30ef --- /dev/null +++ b/core/linux-api-headers/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 173939 2012-12-28 13:11:06Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc + +pkgname=linux-api-headers +pkgver=3.7.1 +_basever=3.7 +pkgrel=1 +pkgdesc="Kernel headers sanitized for use in userspace" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/libc" +license=('GPL2') +source=(http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.xz + http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz) + # NOTE: signatures are not automatically verified by makepkg + #http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.sign + #http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.sign +md5sums=('21223369d682bcf44bcdfe1521095983' + '48f5f530b048e387e978e3e49de7742a') + +build() { + cd ${srcdir}/linux-${_basever} + [[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver} + + make mrproper + make headers_check +} + +package() { + cd ${srcdir}/linux-${_basever} + make INSTALL_HDR_PATH=${pkgdir}/usr headers_install + + # use headers from libdrm + rm -r ${pkgdir}/usr/include/drm + + # clean-up unnecessary files generated during install + find ${pkgdir} \( -name .install -o -name ..install.cmd \) -delete +} |