2 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
3 # Contributor: danst0 <danst0@west.de>
4 # Contributor: Tim Besard <tim.besard@gmail.com>
9 pkgdesc="The C runtime library for the AVR family of microcontrollers"
11 url="http://savannah.nongnu.org/projects/avr-libc/"
15 conflicts=('avr-libc')
19 _svntrunk=svn://svn.savannah.nongnu.org/avr-libc/trunk/avr-libc
25 if [ -d $_svnmod/.svn ]; then
26 (cd $_svnmod && svn up -r $pkgver)
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
40 ./configure --build=$(./config.guess) --host=avr --prefix=/usr
45 cd "$srcdir/$_svnmod-build"
46 make DESTDIR=${pkgdir} install
48 install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
51 # vim:set ts=2 sw=2 et: