summaryrefslogtreecommitdiff
path: root/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD
blob: fadd146996f22603bf70654a37d4c19d164cec50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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')