1 # Contributor: Angelo Theodorou <encelo@gmail.com>
5 pkgdesc="Statistical charts about pacman activity"
7 url="http://pacstats.googlecode.com"
9 depends=('pygtk' 'python-matplotlib')
10 makedepends=('mercurial' 'gettext')
12 conflicts=('pacstats')
14 _hgroot=https://pacstats.googlecode.com/hg/
19 msg "Connecting to Mercurial server...."
21 if [ -d $_hgrepo ] ; then
23 hg pull -u || return 1
24 msg "The local files are updated."
26 hg clone $_hgroot $_hgrepo || return 1
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
36 # Building and installing
37 python setup.py install --root=$pkgdir --prefix=/usr