
phpsh-git pkgbuild
By: a guest on
Oct 23rd, 2010 | syntax:
Bash | size: 1.07 KB | hits: 79 | expires: Never
# Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
pkgname=phpsh-git
pkgver=20101024
pkgrel=1
pkgdesc="An interactive shell for php that features readline history, tab completion and quick access to documentation."
arch=(any)
url="http://www.phpsh.org/"
license=('CUSTOM')
depends=('python2' 'python-pysqlite' 'php')
makedepends=('git' 'setuptools')
install=phpsh.install
_gitroot="git://github.com/polizei/phpsh.git"
_gitname="phpsh"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
#git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
python2 setup.py install --root=$startdir/pkg || return 1
install -D -m 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}