updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / gccgo-svn / PKGBUILD
blob0329aa7216c4620c8b1829b33b9c31ac7061c952
1 # Maintainer: res <andres87p gmail>
2 pkgname=gccgo-svn
3 pkgver=155971
4 pkgrel=1
5 pkgdesc='Go compiler using the gcc backend'
6 arch=(i686 x86_64)
7 url=http://golang.org/
8 license=(GPL)
9 makedepends=(subversion)
10 optdepends=(gold-cvs)
12 _svnmod=${pkgname%-svn}
13 _svntrunk=svn://gcc.gnu.org/svn/gcc/branches/$_svnmod
15 build() {
16   if [[ -d $_svnmod/.svn ]]; then
17     (cd $_svnmod; svn up -r $pkgver)
18   else
19     svn co $_svntrunk --config-dir . -r $pkgver $_svnmod
20   fi
22   msg 'SVN checkout done or server timeout'
23   msg 'Starting make...'
25   rm -rf build
26   mkdir build
27   cd build
29   ../$_svnmod/configure --enable-languages=c,c++,go \
30                         --mandir=/usr/share/man \
31                         --prefix=/usr \
32                         --infodir=/usr/share/info #\
33                        #--with-ld=/usr/bin/gold
34   make || return 1
35   make DESTDIR=$pkgdir install