core/linux-api-headers/PKGBUILD
AlmAck bd24b20bd0 linux: second batch group update (missing lib32 pkgs)
- updated nvidia, nvidia-340 and nvidia-304 drivers to the latest stable version
- new nvidia-utils pkgbuild! read the .manifest file to auto populate the pkg
- removed gcc49, no more needed to build catalyst
2016-04-03 13:29:55 +02:00

45 lines
1.3 KiB
Bash

# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname=linux-api-headers
pkgver=4.5
_basever=4.5
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace"
arch=('x86_64')
url="http://www.gnu.org/software/libc"
license=('GPL2')
source=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-${_basever}.tar.xz
http://www.kernel.org/pub/linux/kernel/v4.x/linux-${_basever}.tar.sign
http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz
http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.sign)
md5sums=('a60d48eee08ec0536d5efb17ca819aef'
'SKIP'
'fed8cc0ab7d233e1b331c0c8f001ad1a'
'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
prepare() {
cd ${srcdir}/linux-${_basever}
[[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver} || true
}
build() {
cd ${srcdir}/linux-${_basever}
make mrproper
make headers_check
}
package() {
cd ${srcdir}/linux-${_basever}
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
}