archrelease: copy trunk to extra-x86_64
[arch-packages.git] / linux-api-headers / repos / core-any / PKGBUILD
blob53999f4d63f07fc97390437c4560b8760160e8d6
1 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
2 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
3 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
4 # Contributor: Allan McRae <allan@archlinux.org>
6 # toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
8 pkgname=linux-api-headers
9 pkgver=5.18.15
10 pkgrel=1
11 pkgdesc='Kernel headers sanitized for use in userspace'
12 arch=(any)
13 url='https://www.gnu.org/software/libc'
14 license=(GPL2)
15 makedepends=(rsync)
16 source=(https://www.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.{xz,sign})
17 sha256sums=('69804febdc388a69dfb64493b7b58d402853de3a14144ea8db7fd67c30dcbe3c'
18             'SKIP')
19 validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886'   # Linus Torvalds
20               '647F28654894E3BD457199BE38DBBDC86092693E')  # Greg Kroah-Hartman
22 build() {
23   cd linux-$pkgver
25   make mrproper
28 package() {
29   cd linux-$pkgver
30   make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
32   # use headers from libdrm
33   rm -r "$pkgdir/usr/include/drm"