1 # Contributor:Xemertix <arch88(at)katamail(dot)com>
3 pkgname=php-pecl-cairo-svn
6 pkgdesc="Pecl PHP extension for Cairo graphics library"
8 url="http://pecl.php.net/package/cairo"
9 license=('PHP License')
13 makedepends=('subversion')
17 _svntrunk="http://svn.php.net/repository/pecl/cairo/trunk"
23 msg "Connecting to SVN server...."
25 if [ -d ${_svnmod}/.svn ]; then
26 (cd ${_svnmod} && svn up -r $pkgver)
28 svn co ${_svntrunk} --config-dir ./ -r $pkgver ${_svnmod}
31 msg "SVN checkout done or the server timed out"
32 msg "Starting make..."
34 svn export ${_svnmod} ${_svnmod}-build
38 ./configure|| return 1
40 make INSTALL_ROOT="$pkgdir/" install