PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Maintainer (arch:linux-api-headers): Giancarlo Razzolini <grazzolini@archlinux.org>
  2. # Maintainer (arch:linux-api-headers): Frederik Schwan <freswa at archlinux dot org>
  3. # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  4. # Contributor: Allan McRae <allan@archlinux.org>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. # Contributor: André Silva <emulatorman@hyperbola.info>
  7. # Contributor: bill-auger <bill-auger@programmer.net>
  8. # parabola changes and rationale:
  9. # - changing upstream source url to linux-libre
  10. # - change arch from (any) to explicit list, since headers differ across arches
  11. # toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
  12. pkgname=linux-libre-api-headers
  13. pkgver=5.17.3
  14. pkgver+=_gnu
  15. _minor_ver=$(sed 's|\([0-9]\+\.[0-9]\+\).*|\1|' <<<${pkgver}) # eg: 6.1
  16. _pkgver=${pkgver%_*} # eg: 6.1.5
  17. _upstream_minor_ver=${_minor_ver}-gnu # eg: 6.1-gnu
  18. _upstream_ver=${pkgver/_/-} # eg: 6.1.5-gnu
  19. pkgrel=1
  20. pkgdesc='Kernel headers sanitized for use in userspace'
  21. arch=(armv7h i686 x86_64)
  22. url='https://www.gnu.org/software/libc'
  23. license=(GPL2)
  24. # makedepends=(rsync) # TODO: does not seem to be needed
  25. provides=("linux-api-headers=${_pkgver}")
  26. source=(https://linux-libre.fsfla.org/pub/linux-libre/releases/${_upstream_minor_ver}/linux-libre-${_upstream_minor_ver}.tar.xz{,.sign}
  27. https://linux-libre.fsfla.org/pub/linux-libre/releases/${_upstream_ver}/patch-${_upstream_minor_ver}-${_upstream_ver}.xz{,.sign})
  28. sha256sums=('4e69f73df3c65132ef51500810bc3b08b069326355a9ea9471206e130c0c84a3'
  29. 'SKIP'
  30. 'e9cb3e778884431b94e8fa3b50db390adab594c67b29a6f36ff9b9b5f67e318a'
  31. 'SKIP')
  32. validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
  33. prepare() {
  34. cd linux-${_minor_ver}
  35. patch -p1 -i "${srcdir}"/patch-${_minor_ver}-gnu-${_pkgver}-gnu
  36. }
  37. build() {
  38. cd linux-${_minor_ver}
  39. make mrproper
  40. }
  41. package() {
  42. cd linux-${_minor_ver}
  43. make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
  44. # use headers from libdrm
  45. rm -r "$pkgdir/usr/include/drm"
  46. }