updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qct / PKGBUILD
bloba52a05610eaea9d9a4c981f13d9afe55d823ec14
1 # Contributor: <sagikliwon@gmail.com>
3 pkgname=qct
4 pkgver=552
5 pkgrel=1
6 pkgdesc="QT commit tool"
7 url="http://qct.sourceforge.net/"
8 license='GPL'
9 arch=('i686' 'x86_64')
10 depends=('python' 'pyqt')
11 makedepends=('mercurial')
12 source=()
13 md5sums=()
15 _hgroot='http://bitbucket.org/sborho/'
16 _hgrepo='qct'
18 build() {
19         cd $startdir/src
21         # update the repo, else clone a new one
22         if [ -d $_hgrepo ]; then
23                 cd $_hgrepo
24                 make clean
25                 hg pull -u
26         else
27                 hg clone ${_hgroot}/${_hgrepo}
28                 cd $_hgrepo
29         fi
31         make || return 1
32         python setup.py install --root=$startdir/pkg || return 1
34         mkdir -p $startdir/pkg/usr/lib/python2.6/site-packages/hgext/
35         cp plugins/qct.py $startdir/pkg/usr/lib/python2.6/site-packages/hgext/
37         mkdir -p $startdir/pkg/usr/share/qct/plugins/
38         cp plugins/qctBzrPlugin.py $startdir/pkg/usr/share/qct/plugins/