summaryrefslogtreecommitdiff
path: root/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD')
-rw-r--r--cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
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 <fauno@kiwwwi.com.ar>
+#
+
+_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')