updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / gcc-avr-svn / PKGBUILD
blob814bf0cdb03e0f82728f68e1d5c43bf71b799326
1 # $Id$
2 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
3 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
4 # Contributor: danst0 <danst0@west.de>
6 pkgname=gcc-avr-svn
7 pkgver=179713
8 pkgrel=1
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')
15 provides=('gcc-avr')
16 conflicts=('gcc-avr')
17 options=('!ccache' '!distcc' '!emptydirs' '!libtool' '!strip')
18 source=()
19 md5sums=()
21 _svntrunk=svn://gcc.gnu.org/svn/gcc/trunk/
22 _svnmod=gcc-avr
24 build() {
25         export CFLAGS="-O2 -pipe"
26         export CXXFLAGS="-O2 -pipe"
28   cd "$srcdir"
30   if [ -d $_svnmod/.svn ]; then
31     (cd $_svnmod && svn up -r $pkgver)
32   else
33     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34   fi
36   msg "SVN checkout done or server timeout"
37   msg "Starting make..."
39   cd "$srcdir/$_svnmod"
40         mkdir build
41         cd build
42         ../configure --disable-libssp \
43                 --disable-nls \
44                 --enable-languages=c,c++ \
45                 --infodir=/usr/share/info \
46                 --libdir=/usr/lib \
47                 --libexecdir=/usr/lib \
48                 --mandir=/usr/share/man \
49                 --prefix=/usr \
50                 --target=avr \
51                 --with-gnu-as \
52                 --with-gnu-ld \
53                 --with-as=/usr/bin/avr-as \
54                 --with-ld=/usr/bin/avr-ld
56         make
59 package() {
60   cd "$srcdir/$_svnmod"
62         cd build
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