1 # Maintainer: Adam Russell <adamlr6+arch@gmail.com>
2 # Contributor: halim <sagikliwon@gmail.com>
3 # Contributor: Alexey "Mr.Cat" Bakhirkin <abakhirkin(at)gmail.com>
4 # Contributor: André Klitzing <aklitzing () online () de>
5 # Contributor: Yumi Nanako <yumileroy [at] yahoo.com>
9 pkgdesc="Mercurial GUI front end"
10 arch=('i686' 'x86_64')
11 url="http://tortoisehg.bitbucket.org/"
13 depends=('python2' 'mercurial>=1.6' 'python2-pyqt>=4.7' 'python2-qscintilla')
14 makedepends=('setuptools')
15 optdepends=('python2-iniparse: ini file support'
16 'python2-pygments: syntax highlighting'
17 'python-nautilus: Python binding for Nautilus components')
18 provides=('tortoisehg')
19 conflicts=('tortoisehg-thg-stable-hg' 'tortoisehg-hgtk' 'tortoisehg-stable-hg' 'tortoisehg-crew-hg')
21 md5sums=('2e04ba5fdcb361cd68e9ef7ed4c987a5')
23 _hgroot="https://bitbucket.org/tortoisehg"
27 cd ${srcdir}/${_hgrepo}
28 hg update -C stable || return 1
29 cp ${startdir}/config.py ${srcdir}/${_hgrepo}/tortoisehg/util
30 python2 setup.py build || return 1
34 cd ${srcdir}/${_hgrepo}
35 python2 setup.py install --root=${pkgdir} || return 1
36 install -Dm 644 "contrib/mergetools.rc" "${pkgdir}/etc/mercurial/hgrc.d/thgmergetools.rc" || return 1