updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / pacstats-hg / PKGBUILD
blobd19c2287df7fd9cb0c532a20ebdcf5cd09dba3f4
1 # Contributor: Angelo Theodorou <encelo@gmail.com>
2 pkgname=pacstats-hg
3 pkgver=21
4 pkgrel=1
5 pkgdesc="Statistical charts about pacman activity"
6 arch=('any')
7 url="http://pacstats.googlecode.com"
8 license=('GPL')
9 depends=('pygtk' 'python-matplotlib')
10 makedepends=('mercurial' 'gettext')
11 provides=('pacstats')
12 conflicts=('pacstats')
14 _hgroot=https://pacstats.googlecode.com/hg/
15 _hgrepo=pacstats
17 build() {
18   cd "$srcdir"
19   msg "Connecting to Mercurial server...."
21   if [ -d $_hgrepo ] ; then
22     cd $_hgrepo
23     hg pull -u || return 1
24     msg "The local files are updated."
25   else
26     hg clone $_hgroot $_hgrepo || return 1
27   fi
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