[arch-commits] Commit in linux-api-headers/repos (4 files)

Allan McRae allan at archlinux.org
Sat Feb 7 10:35:09 UTC 2015


    Date: Saturday, February 7, 2015 @ 11:35:09
  Author: allan
Revision: 231101

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 231100, linux-api-headers/trunk/PKGBUILD)
  linux-api-headers/repos/staging-x86_64/
  linux-api-headers/repos/staging-x86_64/PKGBUILD
    (from rev 231100, linux-api-headers/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

Copied: linux-api-headers/repos/staging-i686/PKGBUILD (from rev 231100, linux-api-headers/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-02-07 10:35:09 UTC (rev 231101)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+
+# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=linux-api-headers
+pkgver=3.18.5
+_basever=3.18
+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/v3.x/linux-${_basever}.tar.xz
+        http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.sign
+        http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz
+        http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.sign)
+md5sums=('9e854df51ca3fef8bfe566dbd7b89241'
+         'SKIP'
+         'e8563b2feaa6c33d20d23ac7add9d385'
+         'SKIP')
+validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886'   # Linus Torvalds
+              '647F28654894E3BD457199BE38DBBDC86092693E')  # Greg Kroah-Hartman
+
+prepare() {
+  cd ${srcdir}/linux-${_basever}
+  [[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver}
+}
+
+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 231100, linux-api-headers/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-02-07 10:35:09 UTC (rev 231101)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+
+# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=linux-api-headers
+pkgver=3.18.5
+_basever=3.18
+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/v3.x/linux-${_basever}.tar.xz
+        http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.sign
+        http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz
+        http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.sign)
+md5sums=('9e854df51ca3fef8bfe566dbd7b89241'
+         'SKIP'
+         'e8563b2feaa6c33d20d23ac7add9d385'
+         'SKIP')
+validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886'   # Linus Torvalds
+              '647F28654894E3BD457199BE38DBBDC86092693E')  # Greg Kroah-Hartman
+
+prepare() {
+  cd ${srcdir}/linux-${_basever}
+  [[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver}
+}
+
+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