4 pkgdesc="tair client for php"
6 url="http://code.google.com/p/php-tair/"
8 depends=('php' 'taobao-tair-svn')
9 makedepends=('subversion' 'php' 'taobao-tair-svn')
15 _svnmod='php-tair-svn'
16 _svntrunk="http://php-tair.googlecode.com/svn/trunk/"
21 msg "Getting source..."
22 if [ -d "$_svnmod/.svn" ] ; then
23 cd "$_svnmod" && svn --config-dir ../ -r $pkgver up
25 svn --config-dir ./ -r $pkgver co "$_svntrunk" "$_svnmod"
30 msg "SVN checkout done or server timeout"
31 msg "Creating make environment..."
32 rm -rf "$srcdir/$_svnmod-build"
33 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35 msg "Starting make..."
37 cd "$srcdir/$_svnmod-build"
39 ./configure --prefix=/usr || return 1
41 make INSTALL_ROOT=$pkgdir install || return 1
42 echo "extension=tair.so" > tair.ini
43 grep tair $srcdir/$_svnmod-build/tmp-php.ini >> tair.ini
44 install -Dm644 tair.ini $pkgdir/etc/php/conf.d/tair.ini