updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-logbook-git / PKGBUILD
blob6e101394752b3bffb7da949fde68216fcd461047
1 pkgname=python-logbook-git
2 pkgver=20110606
3 pkgrel=1
4 pkgdesc="Logging system for Python that aims to replace the standard library's logging module"
5 arch=(any)
6 url="http://packages.python.org/Logbook/"
7 license=('BSD')
8 depends=("python>3.1")
9 source=()
10 md5sums=()
12 _gitroot="git://github.com/mitsuhiko/logbook.git"
13 _gitname="logbook"
15 build() {
16         cd "$srcdir"
17         msg "Connecting to GIT server...."
18         
19         if [ -d $_gitname ] ; then
20            cd $_gitname && git pull origin
21            msg "The local files are updated."
22         else
23            git clone $_gitroot $_gitname
24            cd $_gitname
25         fi
26         
27         python setup.py install --root=${pkgdir} || return 1