PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Maintainer (arch): Anatol Pomozov <anatol.pomozov@gmail.com>
  2. _target_arch=arm
  3. _target=arm-linux-gnueabi
  4. pkgname=$_target-linux-libre-api-headers
  5. _pkgver=4.19-gnu
  6. _srcver=${_pkgver%-*}
  7. pkgver=${_pkgver//-/_}
  8. pkgrel=1
  9. pkgdesc="Kernel headers sanitized for use in userspace ($_target)"
  10. arch=(any)
  11. url='https://linux-libre.fsfla.org'
  12. license=(GPL2)
  13. provides=("$_target-linux-api-headers=${_srcver}")
  14. conflicts=("$_target-linux-api-headers")
  15. replaces=("$_target-linux-api-headers")
  16. source=("https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz"{,.sign})
  17. sha512sums=('5bc800b3beff43a8c15bd5515f4e0babe2beb5fa600491b7b37110e22d9b739d293f1e38753ed681be289c51390e0e64b3e60ce0db0a3bfe1f94ee5c014579a3'
  18. 'SKIP')
  19. validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
  20. build() {
  21. cd linux-$_srcver
  22. make ARCH=$_target_arch mrproper
  23. make ARCH=$_target_arch headers_check
  24. }
  25. package() {
  26. cd linux-$_srcver
  27. make INSTALL_HDR_PATH="$pkgdir/usr/$_target/" ARCH=$_target_arch V=0 headers_install
  28. # clean-up unnecessary files generated during install
  29. find "$pkgdir" \( -name .install -or -name ..install.cmd \) -delete
  30. }