1 # Maintainer : Gergely Imreh <imrehgATgmailDOTcom>
2 # Contributor : dschauer <dschauerATgmailDOTcom>
3 # Contributor : Stefan Husmann <stefan-husmann@t-online.de>
4 # Contributor : Jeremy Cowgar <jeremy@cowgar.com>
9 pkgdesc="Tiny C Compiler"
10 arch=('i686' 'x86_64')
11 url="http://bellard.org/tcc/"
14 source=(http://download.savannah.nongnu.org/releases/tinycc/${pkgname}-${pkgver}.tar.bz2)
17 cd ${srcdir}/${pkgname}-${pkgver}
19 #sed fixes from Gentoo ebuild, cheers!
21 sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile
28 sed -i -e '1s/$/ -lX11/' examples/ex4.c
30 ./configure --prefix=/usr
32 make tccdir=${pkgdir}/usr/lib/tcc libdir=${pkgdir}/usr/lib \
33 mandir=${pkgdir}/usr/share/man bindir=${pkgdir}/usr/bin \
34 includedir=${pkgdir}/usr/include \
35 docdir=${pkgdir}/usr/share/doc/tcc \
39 make CFLAGS="-fPIC" libtcc.o || return 1
40 ld -shared -soname libtcc.so -o libtcc.so libtcc.o || return 1
41 install -D -m 755 libtcc.so "${pkgdir}/usr/lib/libtcc.so"
43 md5sums=('991c2a1986cce15f03ca6ddc86ea5f43')