blob: 10806b1b4b7de6cd732770980321b2b867597fc6 (
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
49
|
# Maintainer: Allen Wild <allenwild93@gmail.com>
# Contributor: Riley Trautman <asonix.dev@gmail.com>
pkgname=aarch64-linux-musl
pkgver=1.2.5
pkgrel=1
pkgdesc='Lightweight implementation of C standard library'
arch=('i686' 'x86_64')
url='https://musl.libc.org'
license=('MIT')
options=('staticlibs' '!buildflags' '!strip')
depends=('aarch64-linux-gnu-gcc')
validpgpkeys=('836489290BB6B70F99FFDA0556BCDB593020450F')
source=(https://musl.libc.org/releases/musl-${pkgver}.tar.gz{,.asc})
b2sums=('6065dc1e01874d1b96abe714147dcc0b41ca702ca9e9c44e85864185dab0b6d085a692745db0822c94a79325e1a91dad60c52f467717d9323b2b3c6ad0a17545'
'SKIP')
_target=aarch64-linux-gnu
_sysroot=/usr/$_target/lib/musl
build() {
cd musl-$pkgver
./configure --prefix=$_sysroot \
--exec-prefix=/usr \
--target=$_target \
--enable-wrapper=all
make
}
package() {
cd musl-$pkgver
make DESTDIR="$pkgdir" install
# configure syslibdir with /lib for PT_INTERP compat, but install to /usr/lib
mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir$_sysroot"/lib/
rmdir "$pkgdir"/lib
pushd "$pkgdir"/usr/bin
local _bin
for _bin in *; do
mv "$_bin" "${_target%-gnu}-$_bin"
done
popd
install -Dm0644 README "$pkgdir"/usr/share/doc/$pkgname/README
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
}
# vim: et ts=2 sts=2 sw=2
|