PKGBUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer (Arch): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  2. # Contributor (Arch): Allan McRae <allan@archlinux.org>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # parabola changes and rationale (based on core/linux-api-headers):
  6. # - changing upstream source url to linux-libre
  7. # - change arch from (any) to explicit list, since headers differ across arches
  8. # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
  9. pkgname=linux-libre-api-headers
  10. pkgver=5.8.13_gnu
  11. _minor_ver=${pkgver%.*}
  12. _upstream_ver=${pkgver//_/-}
  13. _dep_ver=${pkgver%_*}
  14. pkgrel=2
  15. pkgdesc='Kernel headers sanitized for use in userspace'
  16. arch=(x86_64 i686 armv7h)
  17. url='https://www.gnu.org/software/libc'
  18. license=(GPL2)
  19. makedepends=(rsync)
  20. provides=("linux-api-headers=${_dep_ver}")
  21. source=(https://linux-libre.fsfla.org/pub/linux-libre/releases/${_minor_ver}-gnu/linux-libre-${_minor_ver}-gnu.tar.xz{,.sign}
  22. https://linux-libre.fsfla.org/pub/linux-libre/releases/${_upstream_ver}/patch-${_minor_ver}-gnu-${_upstream_ver}.xz{,.sign})
  23. sha256sums=('8146325466ee53cf46f993ba3d17296272f48bc9f13dd29b89e68563fd805980'
  24. 'SKIP'
  25. '495123509db6c27b89cac3a38ad69d938404eb13ccf34c54e6ec677946b2e4cd'
  26. 'SKIP')
  27. validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
  28. prepare() {
  29. cd linux-${_minor_ver}
  30. patch -p1 -i "$srcdir/patch-${_minor_ver}-gnu-${_upstream_ver}"
  31. }
  32. build() {
  33. cd linux-${_minor_ver}
  34. make mrproper
  35. make headers_check
  36. }
  37. package() {
  38. cd linux-${_minor_ver}
  39. make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
  40. # use headers from libdrm
  41. rm -r "$pkgdir/usr/include/drm"
  42. }