1 # Contributor: Andreas Baumann <abaumann at yahoo dot com>
2 # Contributor: Chris Brannon <cmbrannon (at) cox.net>
7 pkgdesc="A Portable C Compiler."
9 url="http://pcc.ludd.ltu.se/"
11 makedepends=('bison' 'flex' 'cvs')
16 md5sums=('51f6cc02b26af53f26cfe87494ca5c87')
18 _cvsroot=":pserver:anonymous@pcc.ludd.ltu.se:/cvsroot"
23 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
24 if [ -d $_cvsmod/CVS ]; then
28 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
32 msg "CVS checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_cvsmod-build"
36 cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
37 cd "$srcdir/$_cvsmod-build"
39 ./configure --prefix=/usr --libexecdir=/usr/lib/pcc || return 1
41 make CC=gcc || return 1
43 make DESTDIR=$pkgdir install || return 1
44 cd "$pkgdir/usr/share/man/man1"
46 mv ${pkgdir}/usr/share/man/man1/cpp.1 ${pkgdir}/usr/share/man/man1/cpp.1pcc
48 install -D -m0644 ${srcdir}/license ${pkgdir}/usr/share/licenses/${pkgname}/license