1 # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
5 pkgdesc="An interactive shell for php that features readline history, tab completion and quick access to documentation."
7 url="http://www.phpsh.org/"
9 depends=('python-pysqlite' 'php')
10 makedepends=('git' 'python2-distribute')
12 source=('norootfiles.patch')
14 md5sums=('4fe1c73f0bccc4edc58deb8fe5091cc6')
15 sha1sums=('d441d1dfdd3fc7eb6df82f319b50c84821339160')
17 _gitroot="git://github.com/facebook/phpsh.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 patch -p0 -i "$srcdir/norootfiles.patch"
40 python2 setup.py install --root=$pkgdir
41 install -D -m 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"