summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-08-22 16:09:36 -0300
committerDavid P <megver83@parabola.nu>2018-08-22 16:10:01 -0300
commit0a6b113597a27e58ec7365af3d90172f191d1535 (patch)
tree5a9d152361f2c9f95f63c11d33f8179df3ec1591 /libre
parentfa9467f4d40d35a23d66137ba5bb241d8431f26b (diff)
downloadabslibre-0a6b113597a27e58ec7365af3d90172f191d1535.tar.gz
abslibre-0a6b113597a27e58ec7365af3d90172f191d1535.tar.bz2
abslibre-0a6b113597a27e58ec7365af3d90172f191d1535.zip
add libre/riscv64-linux-gnu-linux-libre-api-headers
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'libre')
-rw-r--r--libre/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD b/libre/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD
new file mode 100644
index 000000000..2bf6cc49c
--- /dev/null
+++ b/libre/riscv64-linux-gnu-linux-libre-api-headers/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Contributor (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
+
+_target_arch=riscv
+_target=riscv64-linux-gnu
+pkgname=$_target-linux-api-headers
+_pkgver=4.16-gnu
+
+_srcver=${_pkgver%-*}
+pkgver=${_pkgver//-/_}
+pkgrel=1
+pkgdesc="Kernel headers sanitized for use in userspace ($_target)"
+arch=(any)
+url='https://linux-libre.fsfla.org'
+license=(GPL2)
+provides=("$_target-linux-api-headers=${_srcver}")
+conflicts=("$_target-linux-api-headers")
+replaces=("$_target-linux-api-headers")
+source=("https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz"{,.sign})
+sha512sums=('c6805b3649cd71cfef272384958b33da23a00908e795592470bf711dd67886ab7d7610e7d4ae8a2230fa7483466636465ed9744444464a078de37b41c3db23e0'
+ 'SKIP')
+validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
+
+build() {
+ cd linux-$_srcver
+
+ make ARCH=$_target_arch mrproper
+ make ARCH=$_target_arch headers_check
+}
+
+package() {
+ cd linux-$_srcver
+
+ 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
+}