aboutsummaryrefslogtreecommitdiff
path: root/arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD')
-rw-r--r--arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD b/arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD
new file mode 100644
index 0000000..83fcb99
--- /dev/null
+++ b/arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: André Silva <emulatorman@hyperbola.info>
+# Contributor: Wojtek Kosior <kwojtus@protonmail.com>
+# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
+
+# Based on aarch64-linux-gnu-linux-libre-lts-api-headers package
+
+_target_arch=arm
+_target=arm-linux-gnueabi
+pkgname=$_target-linux-libre-lts-api-headers
+_pkgbasever=4.9-gnu
+_pkgver=${_pkgbasever%-*}.176-gnu
+
+_srcname=linux-${_pkgbasever%-*}
+pkgver=${_pkgver//-/_}
+pkgrel=2
+pkgdesc="Kernel headers sanitized for use in userspace ($_target) - Long Term Support (LTS)"
+arch=(any)
+url='https://www.gnu.org/software/libc'
+license=(GPL2)
+provides=($_target-linux-api-headers)
+conflicts=($_target-linux-api-headers)
+replaces=($_target-linux-api-headers)
+makedepends=(linux-libre-lts-source=$pkgver)
+
+prepare() {
+ prepare-linux-libre-lts-source "${srcdir}"
+}
+
+build() {
+ cd "${srcdir}/${_srcname}"
+
+ make ARCH=$_target_arch mrproper
+ make ARCH=$_target_arch headers_check
+}
+
+package() {
+ cd "${srcdir}/${_srcname}"
+
+ 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
+}