blob: 4b32876631c3a1872b0038d75776557fb422e6ff (
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
|
_target=arm-none-eabi
pkgname=$_target-picolibc
pkgver=1.8.8
pkgrel=1
pkgdesc='Fork of newlib with stdio bits from avrlibc'
arch=('i686' 'x86_64')
url='https://github.com/picolibc/picolibc'
license=('BSD')
makedepends=("$_target-gcc" 'meson')
source=("picolibc-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('b7acd0094b3c2c265e0f41bfa9d29ab85a47e1a02d65cf4929b1886158e8c261')
options=(!strip !buildflags)
build() {
meson \
--prefix="/usr/$_target"/picolibc \
--cross-file "picolibc-$pkgver/scripts/cross-${_target}.txt" \
-Dspecsdir="/usr/$_target/lib" \
-Dsystem-libc=false \
--buildtype=plain \
"picolibc-$pkgver" build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$srcdir/picolibc-$pkgver/COPYING."{GPL2,NEWLIB,picolibc}
}
# vim: set ts=2 sw=2 et:
|