summaryrefslogtreecommitdiffstats
path: root/tcc-git/PKGBUILD
blob: a062c1e5aa80459b3b5cbb2503fc4c2b43eea276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pkgname=tcc-git
pkgver=20091226
pkgrel=1
pkgdesc="Tiny C Compiler - small, simple, and fast single-pass C compiler"
arch=('i686' 'x86_64')
url="http://bellard.org/tcc/"
license=('LGPLv2')
makedepends=('git' 'texi2html')
provides=('tcc')
conflicts=('tcc')

_gitroot="git://repo.or.cz/tinycc.git"
_gitname="tinycc"

build()
{
   cd $srcdir

   msg "Connecting to GIT server..."
   if [ -d "$srcdir/$_gitname" ] ; then
      git --git-dir=$_gitname/.git pull origin
   else
      git clone $_gitroot
   fi
   msg "GIT checkout done or server timeout"

   msg "Starting make..."
   rm -rf $_gitname-build
   cp -r $_gitname $_gitname-build
   cd $_gitname-build
   sed -i 's/CONFIG_TCCDIR \\\"\$tccdir\\\"/CONFIG_TCCDIR \\\"\/usr\/lib\/tcc\\\"/' configure
   ./configure --prefix="$pkgdir/usr"
   make || return 1
   make install || return 1
}