core/linux-api-headers/PKGBUILD
AlmAck 2866cac7f2 kernel 4.17.x
removed source lines and make each PKGBUILD stand alone
removed nvidia-304xx

missing the LTS group and the script for fast updates, like kdeupdate.sh
2018-08-04 16:47:44 +02:00

33 lines
911 B
Bash

# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname=linux-api-headers
pkgver=4.17.12
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace"
arch=('x86_64')
url="http://www.gnu.org/software/libc"
license=('GPL2')
source=(https://www.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver}.tar.{xz,sign})
md5sums=('b6ffb540292e7e7bb5dbcaf8fff9cf05'
'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
build() {
cd linux-$pkgver
make mrproper
make headers_check
}
package() {
cd linux-$pkgver
make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
# use headers from libdrm
rm -r "$pkgdir/usr/include/drm"
# clean-up unnecessary files generated during install
find "$pkgdir" \( -name .install -o -name ..install.cmd \) -delete
}