updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hgcodesmell-hg / PKGBUILD
blob16630b73fb71e2a8946851e748aa0063aa395159
1 # Maintainer: vae77 <fernandogrd@.com>
3 pkgname=hgcodesmell-hg
4 pkgver=23
5 pkgrel=2
6 pkgdesc="Small hg extension to warn about questionable code changes on commit."
7 arch=('any')
8 install=$pkgname.install
9 url="http://mercurial.selenic.com/wiki/CodesmellExtension"
10 license=('GPL')
11 depends=('python2')
12 makedepends=('mercurial')
14 _hgroot="https://hg@bitbucket.org/birkenfeld"
15 _hgrepo="hgcodesmell"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [ -d $_hgrepo ] ; then
23     cd $_hgrepo
24     hg pull -u
25     msg "The local files are updated."
26   else
27     hg clone $_hgroot $_hgrepo
28   fi
30   msg "Mercurial checkout done or server timeout"
34 package() {
36   install -D -m644 $_hgrepo/hgcodesmell.py $pkgdir/usr/lib/python2.7/site-packages/hgcodesmell.py