# Maintainer: Nicolas Reynolds # _pkgname=linux-api-headers _target=mips64el-unknown-linux-gnu _sysroot=/usr/lib/cross-${_target} _KARCH=mips pkgname=cross-${_target}-${_pkgname} pkgver=2.6.38.6 _basever=2.6.38 pkgrel=1 pkgdesc="Kernel headers sanitized for use in userspace for $_target" arch=('i686' 'x86_64') url="http://www.gnu.org/software/libc" license=('GPL2') makedepends=("cross-$_target-gcc1") source=(http://www.fsfla.org/download/linux-libre/releases/$pkgver-libre/linux-$pkgver-libre.tar.bz2) build() { cd ${srcdir}/linux-${pkgver} unset CFLAGS CXXFLAGS export PATH="${_sysroot}/bin:$PATH" make mrproper make headers_check } package() { cd ${srcdir}/linux-${pkgver} make INSTALL_HDR_PATH=${pkgdir}${_sysroot} \ ARCH=${_KARCH} \ CROSS_COMPILE=${_target}- headers_install # use headers from libdrm rm -rf ${pkgdir}${_sysroot}/include/drm # clean-up unnecessary files generated during install find ${pkgdir} -name .install -or -name ..install.cmd | xargs rm -f } md5sums=('a1765e44f7835a27d29790ed4be58ee7')