updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / python-picoparse-git / PKGBUILD
blobc48d6ad5ce2da8d4cf4c4101f746503a4b3a01e6
1 #Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
3 pkgname=python-picoparse-git
4 pkgver=20101027
5 pkgrel=1
6 pkgdesc="Small parser construction library for Python. Regular Expression free."
7 depends=('python2')
8 arch=('any')
9 makedepends=('git')
10 install=
11 url="http://github.com/brehaut/picoparse"
12 license=('BSD')
13 provides=('python-picoparse')
14 conflicts=('python-picoparse')
16 _gitroot=git://github.com/brehaut/picoparse.git
17 _gitname=picoparse
19 build() {
20   cd "${srcdir}"
22   if [ -d ${_gitname} ]; then
23     cd "${_gitname}"  || return 1
24     git pull origin || return 1
25     cd ..
26   else
27     git clone ${_gitroot} || return 1
28   fi
30   msg "GIT checkout done or server timeout"
32   cd "${srcdir}/${_gitname}"
33   python2 setup.py install --root "${pkgdir}" || return 1