updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / hgsvn-hg / PKGBUILD
blobf49523f997e68ef9ca409a7e36028ad351f10f5c
1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
2 # $Id$
4 pkgname=hgsvn-hg
5 pkgver=272
6 pkgrel=2
7 pkgdesc="A set of scripts to work locally on Subversion checkouts using Mercurial"
8 url="http://cheeseshop.python.org/pypi/hgsvn"
9 license=('GPL')
10 depends=('python2>=2.4' 'pysvn-py2' 'setuptools')
11 arch=(i686 x86_64)
12 makedepends=('setuptools' 'mercurial')
13 provides=('hgsvn')
14 conflicts=('hgsvn')
15 #source=('setup.patch')
16 #md5sums=('b3d386f74fdd81ec96fb73402e08adbc')
19 _hgroot="http://bitbucket.org/andialbrecht/"
20 _hgrepo=hgsvn
22 build() {
23         cd ${startdir}/src
25         if [ -d ${_hgrepo} ]; then
26                 cd ${_hgrepo}
27                 hg pull -u || return 1
28         else
29                 hg clone ${_hgroot} ${_hgrepo} || return 1
30                 cd ${_hgrepo}
31         fi
33         msg "Mercurial checkout done or server timeout"
34         msg "Starting make..."
36         cp hgpushsvn.py hgsvn/run/
37         #patch -p0 < ../../setup.patch
38         python2 setup.py install --root=$startdir/pkg/ || return 1