2 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
4 # Contributor: danst0 <danst0@west.de>
9 pkgdesc="The GNU avr Compiler Collection"
10 arch=('i686' 'x86_64')
11 license=('GPL' 'LGPL' 'custom')
12 url="http://gcc.gnu.org/"
13 makedepends=('subversion')
14 depends=('binutils-avr>=2.21' 'cloog' 'ppl' 'gcc-libs>=4.6.0' 'libmpc')
17 options=('!ccache' '!distcc' '!emptydirs' '!libtool' '!strip')
21 _svntrunk=svn://gcc.gnu.org/svn/gcc/trunk/
25 export CFLAGS="-O2 -pipe"
26 export CXXFLAGS="-O2 -pipe"
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver)
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
42 ../configure --disable-libssp \
44 --enable-languages=c,c++ \
45 --infodir=/usr/share/info \
47 --libexecdir=/usr/lib \
48 --mandir=/usr/share/man \
53 --with-as=/usr/bin/avr-as \
54 --with-ld=/usr/bin/avr-ld
63 make -j1 DESTDIR=${pkgdir} install
65 rm -f ${pkgdir}/usr/lib/libiberty.a
66 rm -rf ${pkgdir}/usr/share/man/man7
67 rm -rf ${pkgdir}/usr/share/info