# Contributor: Stefan Wagner # Maintainer: Stefan Wagner pkgname=avr-libc pkgver=2.1.0 pkgrel=2 pkgdesc="The C runtime library for the AVR family of microcontrollers" url="https://github.com/avrdudes/avr-libc" depends="gcc-avr" makedepends="autoconf automake" arch="x86_64 ppc64le aarch64 x86" license="BSD 3-Clause" subpackages="$pkgname-doc" builddir="$srcdir/$pkgname-$pkgname-${pkgver//./_}-release" source="avr-libc-$pkgver.tar.gz::https://github.com/avrdudes/avr-libc/archive/refs/tags/avr-libc-${pkgver//./_}-release.tar.gz" build() { ./bootstrap CC=avr-gcc ./configure \ --build="$(/bin/sh config.guess)" \ --host=avr \ --prefix=/usr make } package() { make install DESTDIR="$pkgdir" if [ -d "$pkgdir"/usr/lib64 ]; then mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/ rmdir "$pkgdir"/usr/lib64 fi } sha512sums=" b9b5702e3770fb76a9b6b405a744120c2b127032424caff6e002b4d21a04a293607da2bb36cb797cbcdf0209e851e858a192d9b2c812e6c6bf8e54ec18ae1beb avr-libc-2.1.0.tar.gz "