updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / phpsh-git / PKGBUILD
blobf3f42e28382a30cd14f96b7f351c3a59a164453b
1 # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
2 pkgname=phpsh-git
3 pkgver=20110118
4 pkgrel=2
5 pkgdesc="An interactive shell for php that features readline history, tab completion and quick access to documentation."
6 arch=(any)
7 url="http://www.phpsh.org/"
8 license=('CUSTOM')
9 depends=('python-pysqlite' 'php')
10 makedepends=('git' 'python2-distribute')
11 install=phpsh.install
12 source=('norootfiles.patch')
14 md5sums=('4fe1c73f0bccc4edc58deb8fe5091cc6')
15 sha1sums=('d441d1dfdd3fc7eb6df82f319b50c84821339160')
17 _gitroot="git://github.com/facebook/phpsh.git"
18 _gitname="phpsh"
20 build() {
21         cd "$srcdir"
22         msg "Connecting to GIT server...."
24         if [ -d $_gitname ] ; then
25                 cd $_gitname && git pull origin
26                 msg "The local files are updated."
27         else
28                 git clone $_gitroot
29         fi
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"