updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / cocotron-gcc-svn / PKGBUILD
blob8a6ae8dfb9042cf722e1d2fbc34d9608e49c8b93
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=cocotron-gcc-svn
4 pkgver=20110530
5 pkgrel=1
6 pkgdesc="GCC patched for Cocotron Obj-C runtime"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="https://github.com/farcaller/cocotron/wiki/Building-GCC"
10 provides=('cocotron-gcc')
11 makedepends=('subversion')
14 build() {
15   cd $srcdir
17 # Update the repo, else clone a new one
18         if [ -d cocotron-gcc ]; then
19                 cd cocotron-gcc
20                 svn up
21                 cd $srcdir
22         else
23                 svn checkout http://cocotron-tools-gpl3.googlecode.com/svn/trunk/gcc cocotron-gcc
24         fi
27   rm -rf $srcdir/build
28   mkdir $srcdir/build
29   cd $srcdir/build
30   ../cocotron-gcc/configure --prefix=$pkgdir/opt/objc --with-gnu-as --with-gnu-ld --without-newlib --disable-multilib \
31     --disable-libssp --disable-nls --disable-libobjc --enable-libffi --enable-objc-gc \
32     --enable-languages=c,objc,c++,obj-c++  --enable-checking=release
33   make -j2
36 package() {
37   cd $srcdir/build
38   make install