updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / python-flickzeug-hg / PKGBUILD
blob27cc479af003565222064520eaaebfc320e584d9
1 # Contributor: Philipp Schmidt <philschmidt at gmx dot net>
3 pkgname=python-flickzeug-hg
4 pkgver=60
5 pkgrel=1
6 pkgdesc="The Swiss Army knife of Python web development debugging."
7 arch=('i686' 'x86_64')
8 url="http://dev.pocoo.org/projects/flickzeug/"
9 license=('Custom')
10 depends=('python')
11 makedepends=('mercurial' 'setuptools')
12 source=()
13 md5sums=()
15 _hgroot="http://dev.pocoo.org/hg/flickzeug-main"
16 _hgrepo="flickzeug"
18 build() {
19         cd "$srcdir"
20         msg "Connecting to Mercurial server...."
22         if [ -d $_hgrepo ] ; then
23             cd $_hgrepo
24             hg pull -u || return 1
25             msg "The local files are updated."
26         else
27             hg clone $_hgroot $_hgrepo || return 1
28         fi
30         msg "Mercurial checkout done or server timeout"
32         rm -rf "$srcdir/$_hgrepo-build"
33         cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34         cd "$srcdir/$_hgrepo-build"
36         msg "Starting setup.py..."
38         python setup.py install --root=$pkgdir/
39         install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE