aboutsummaryrefslogtreecommitdiff
path: root/arm-linux-gnueabi-linux-libre-lts-api-headers/PKGBUILD
blob: 83fcb99daba6cea9fd0a348e49abbad1fcedf485 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
}