# Contributor: Corrado Primier # Contributor: danst0 # Build order: avr-binutils -> avr-gcc -> avr-libc pkgname=avr-libc3-custom groups=('custom') provides=('avr-libc') replaces=('avr-libc') conflicts=('avr-libc') pkgver=3.0.0 pkgrel=1 pkgdesc='C runtime library for the AVR family of microcontrollers' arch=(any) url="https://savannah.nongnu.org/projects/avr-libc/" license=('BSD') depends=('avr-gcc') options=('!strip' 'libtool' 'staticlibs') source=("$pkgname"::'git+git://github.com/rwirth/avr-libc3.git#commit=b3916fc297bcc66d1e49bfb576302b8ca774f0da') sha1sums=('SKIP') build() { cd "$srcdir/$pkgname" export CFLAGS="-Os" export CXXFLAGS="$CFLAGS" unset LDFLAGS ./bootstrap ./configure --build=$(./config.guess) --host=avr --prefix=/usr make } package() { cd "$srcdir/$pkgname" make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING }