[arch-commits] Commit in linux-api-headers/repos (4 files)
Allan McRae
allan at archlinux.org
Thu Apr 23 05:20:15 UTC 2015
Date: Thursday, April 23, 2015 @ 07:20:15
Author: allan
Revision: 237945
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
linux-api-headers/repos/staging-i686/
linux-api-headers/repos/staging-i686/PKGBUILD
(from rev 237944, linux-api-headers/trunk/PKGBUILD)
linux-api-headers/repos/staging-x86_64/
linux-api-headers/repos/staging-x86_64/PKGBUILD
(from rev 237944, linux-api-headers/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 88 insertions(+)
Copied: linux-api-headers/repos/staging-i686/PKGBUILD (from rev 237944, linux-api-headers/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-04-23 05:20:15 UTC (rev 237945)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+
+# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=linux-api-headers
+pkgver=4.0
+_basever=4.0
+pkgrel=1
+pkgdesc="Kernel headers sanitized for use in userspace"
+arch=('i686' '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=('a86916bd12798220da9eb4a1eec3616d'
+ '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
+}
Copied: linux-api-headers/repos/staging-x86_64/PKGBUILD (from rev 237944, linux-api-headers/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-04-23 05:20:15 UTC (rev 237945)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+
+# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=linux-api-headers
+pkgver=4.0
+_basever=4.0
+pkgrel=1
+pkgdesc="Kernel headers sanitized for use in userspace"
+arch=('i686' '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=('a86916bd12798220da9eb4a1eec3616d'
+ '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
+}
More information about the arch-commits
mailing list