blob: 8aba74f336aea767187c0d3e182ccec5189dff72 (
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
|
# Maintainer: Guilhem Saurel <guilhem.saurel@laas.fr>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: philanecros <philanecros@gmail.com>
_pkgname=musl
_target=arm-linux-gnueabihf
pkgname="$_target-$_pkgname"
pkgver=1.2.5
pkgrel=1
pkgdesc='Lightweight implementation of C standard library'
arch=('i686' 'x86_64')
url='http://musl.libc.org'
license=('MIT')
options=('staticlibs' '!buildflags' '!strip')
makedepends=('arm-linux-gnueabihf-binutils' 'arm-linux-gnueabihf-gcc')
validpgpkeys=('836489290BB6B70F99FFDA0556BCDB593020450F')
source=("$url/releases/musl-$pkgver.tar.gz"{,.asc})
sha256sums=('a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4'
'SKIP')
_sysroot="/usr/lib/$_target"
build() {
cd "$_pkgname-$pkgver"
export CC="$_target-gcc"
./configure --prefix="$_sysroot" --sysroot="$_sysroot" \
--bindir=/usr/bin --target="$_target" \
--enable-wrapper=all
make
}
package() {
cd "$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir$_sysroot"
mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir$_sysroot"/lib
rmdir "$pkgdir"/lib
pushd "$pkgdir"/usr/bin
for _bin in *; do
mv "$_bin" "$_target-$_bin"
done
popd
install -Dm0644 README "$pkgdir"/usr/share/doc/$pkgname/README
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
}
|