From 2bb78cec4c286fb8b3056138779e2801e7370425 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sun, 15 May 2011 19:16:17 -0300 Subject: cross-mips64el-unknown-linux-gnu-linux-api-headers --- .../PKGBUILD | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD diff --git a/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD b/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD new file mode 100644 index 0000000..fadd146 --- /dev/null +++ b/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD @@ -0,0 +1,42 @@ +# 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') -- cgit v1.2.3-54-g00ecf