updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / tortoisehg-hg / PKGBUILD
blobbf7f26b7c5e24ce779849bcef238e7a5897027be
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>
6 pkgname=tortoisehg-hg
7 pkgver=11708
8 pkgrel=1
9 pkgdesc="Mercurial GUI front end"
10 arch=('i686' 'x86_64')
11 url="http://tortoisehg.bitbucket.org/"
12 license=('GPL2')
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')
20 source=('config.py')
21 md5sums=('2e04ba5fdcb361cd68e9ef7ed4c987a5')
23 _hgroot="https://bitbucket.org/tortoisehg"
24 _hgrepo="thg"
26 build() {
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
33 package() {
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