blob: 4f3c23481f28b8b4cdd123002c8a95d3f7e6e5aa (
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
44
45
46
47
48
|
# Maintainer: tarball <bootctl@gmail.com>
# Contributor: Cédric Schieli <cschieli at gmail dot com>
#
# To fetch the author's GPG key, run:
# $ gpg --locate-keys bwh@kernel.org
pkgname=klibc
pkgver=2.0.13
pkgrel=1
pkgdesc="A minimalistic libc subset for use with initramfs"
arch=(x86_64 aarch64 i686)
url="https://mirrors.kernel.org/pub/linux/libs/klibc/"
license=('GPL')
depends=(perl)
makedepends=(linux-api-headers)
options=('staticlibs')
validpgpkeys=(
'AC2B29BD34A6AFDDB3F68F35E7BFC8EC95861109' # Ben Hutchings <bwh@kernel.org>
)
source=(
"https://mirrors.kernel.org/pub/linux/libs/klibc/2.0/${pkgname}-${pkgver}.tar."{xz,sign}
)
sha256sums=('d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4af0436'
'SKIP')
prepare() {
cd "$pkgname-$pkgver"
mkdir -p uapi/include
ln -sf /usr/include/{asm,asm-generic,linux} uapi/include/
}
build() {
cd "$pkgname-$pkgver"
make KLIBCKERNELSRC=uapi
}
check() {
cd "$pkgname-$pkgver"
make -k KLIBCKERNELSRC=uapi test
}
package() {
cd "$pkgname-$pkgver"
mkdir -p "$pkgdir/usr/lib"
ln -s "$pkgdir/usr/lib" "$pkgdir/lib"
make KLIBCKERNELSRC=uapi INSTALLROOT="$pkgdir" mandir=/usr/share/man install
rm -f "$pkgdir/lib"
}
|