updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / pcc-libs-selfhost / PKGBUILD
blob9e17b76305fea0849e084d46be7091ba605593a8
1 # Contributor: Jens Staal <staal1978@gmail.com>
3 pkgname=pcc-libs-selfhost
4 pkgver=20110613
5 pkgrel=1
6 pkgdesc="Self-hosting Portable C Compiler libraries"
7 arch=('i686' 'x86_64')
8 url="http://pcc.ludd.ltu.se/"
9 license=('custom:BSD')
10 provides=('pcc-libs')
11 conflicts=('pcc-libs')
12 depends=('pcc')
13 makedepends=('cvs')
15 _cvsroot=":pserver:anonymous@pcc.ludd.ltu.se:/cvsroot"
17 build() {
18 #some build environment stuff defined
19   export CC=pcc
20   export CFLAGS="-xdce -xssa -O -static"
22   cd "$srcdir"
24   msg "Building libraries"
25   msg "Connecting to CVS server...."
26   if [ -d pcc-libs/CVS ]; then
27     cd pcc-libs
28     cvs -z3 update -d
29   else
30     cvs -z3 -d $_cvsroot co -D $pkgver -f pcc-libs
31     cd pcc-libs
32   fi
34   msg "CVS checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/pcc-libs-build"
38   cp -ar "$srcdir/pcc-libs" "$srcdir/pcc-libs-build"
39   cd "$srcdir/pcc-libs-build"
41   ./configure --prefix=/usr || return 1
42   make all || return 1
43   make DESTDIR=$pkgdir install || return 1