summaryrefslogtreecommitdiff
path: root/libre/aarch64-linux-gnu-linux-libre-api-headers
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-12-15 15:03:54 -0300
committerDavid P <megver83@parabola.nu>2017-12-15 15:03:54 -0300
commitacaa4ba9c0bc77deb6b77e4dad815f66c673d662 (patch)
tree798a59419dba87096d52907bbb8d4d162ddf5838 /libre/aarch64-linux-gnu-linux-libre-api-headers
parentf0d3a651744c676c319564cc0004526999412c3e (diff)
downloadabslibre-acaa4ba9c0bc77deb6b77e4dad815f66c673d662.tar.gz
abslibre-acaa4ba9c0bc77deb6b77e4dad815f66c673d662.tar.bz2
abslibre-acaa4ba9c0bc77deb6b77e4dad815f66c673d662.zip
Add libre/aarch64-linux-gnu-linux-libre-api-headers
See https://labs.parabola.nu/issues/1571
Diffstat (limited to 'libre/aarch64-linux-gnu-linux-libre-api-headers')
-rw-r--r--libre/aarch64-linux-gnu-linux-libre-api-headers/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/libre/aarch64-linux-gnu-linux-libre-api-headers/PKGBUILD b/libre/aarch64-linux-gnu-linux-libre-api-headers/PKGBUILD
new file mode 100644
index 000000000..a469d2430
--- /dev/null
+++ b/libre/aarch64-linux-gnu-linux-libre-api-headers/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
+
+_target_arch=arm64
+_target=aarch64-linux-gnu
+pkgname=$_target-linux-libre-api-headers
+_pkgver=4.14-gnu
+
+_archpkgver=${_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=${_archpkgver}")
+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=('0d4b0b8ec1ffc39c59295adf56f6a2cccf77cad56d8a8bf8072624bbb52ba3e684147ebed91d1528d2685423dd784c5fca0f3650f874f2b93cfc6b7689b9a87f'
+ 'SKIP')
+validpgpkeys=('474402C8C582DAFBE389C427BCB7CF877E7D47A7') # Alexandre Oliva
+
+build() {
+ cd linux-$_archpkgver
+
+ make ARCH=$_target_arch mrproper
+ make ARCH=$_target_arch headers_check
+}
+
+package() {
+ cd linux-$_archpkgver
+
+ 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
+}