1 # Maintainer: Panos Mavrogiorgos <pmav99@gmail.com>
6 pkgdesc="An ack-like tool for grepping through source code."
7 url="http://bitbucket.org/eliben/pss"
8 license=('public domain')
11 makedepends=('python2' 'mercurial')
16 _hgroot="http://bitbucket.org/eliben"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
25 hg pull -u || return 1
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo || return 1
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-$pkgver"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-$pkgver"
39 cd "$srcdir/$_hgrepo-$pkgver"
40 python2 setup.py install --root="$pkgdir/" --optimize=1
43 # vim:set ts=2 sw=2 et: