From 92d96da3407d9c357e8c70ee0676a740a953e7b0 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 1 May 2021 17:24:39 +0200 Subject: Initial/Final commit --- .../PKGBUILD | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD (limited to 'arm-linux-gnueabi-linux-libre-lts-api-headers') 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 +# Contributor: Wojtek Kosior +# Maintainer (Arch): Anatol Pomozov + +# 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 +} -- cgit v1.2.3