1 # Contributor: Brendan Long <korin43 at gmail dot com>
6 pkgdesc="the open source php compiler - from svn"
8 url="http://www.phpcompiler.org/"
11 depends=('php' 'php-embed')
12 makedepends=('boost' 'gc')
13 optdepends=('graphviz: to view graphical output (like syntax trees)'
14 'xerces-c: support for XML parsing (not needed for XML unparsing)')
17 _svntrunk="http://phc.googlecode.com/svn/trunk/"
23 msg "Connecting to SVN server...."
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29 msg "SVN checkout done or server timeout"
34 LDFLAGS="" ./configure --prefix=/usr --with-php=/usr
36 make DESTDIR=$pkgdir install || return 1
37 mkdir -p $pkgdir/usr/share/licenses/$pkgname
38 cp doc/license/LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING