[arch-commits] Commit in riscv64-linux-gnu-linux-api-headers/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:23:15 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:23:15
  Author: felixonmars
Revision: 658442

archrelease: copy trunk to community-staging-any

Added:
  riscv64-linux-gnu-linux-api-headers/repos/community-staging-any/
  riscv64-linux-gnu-linux-api-headers/repos/community-staging-any/PKGBUILD
    (from rev 658440, riscv64-linux-gnu-linux-api-headers/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: riscv64-linux-gnu-linux-api-headers/repos/community-staging-any/PKGBUILD (from rev 658440, riscv64-linux-gnu-linux-api-headers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 13:23:15 UTC (rev 658442)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_target_arch=riscv
+_target=riscv64-linux-gnu
+pkgname=$_target-linux-api-headers
+pkgver=5.0
+pkgrel=2
+pkgdesc="Kernel headers sanitized for use in userspace ($_target)"
+arch=(any)
+url='https://www.kernel.org'
+license=(GPL2)
+source=(https://www.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.{xz,sign})
+sha1sums=('3a7bc3cdd77d71b18b96ca0d92e57ef9bded3757'
+          'SKIP')
+validpgpkeys=(
+  'ABAF11C65A2970B130ABE3C479BE3E4300411886'  # Linus Torvalds
+  '647F28654894E3BD457199BE38DBBDC86092693E'  # Greg Kroah-Hartman
+)
+
+
+build() {
+  cd linux-$pkgver
+
+  make ARCH=$_target_arch mrproper
+  make ARCH=$_target_arch headers_check
+}
+
+package() {
+  cd linux-$pkgver
+
+  make INSTALL_HDR_PATH="$pkgdir/usr/$_target/" ARCH=$_target_arch V=0 headers_install
+
+  # clean-up unnecessary files generated during install
+  find "$pkgdir" \( -name .install -or -name ..install.cmd \) -delete
+}


More information about the arch-commits mailing list