updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pida-hg / PKGBUILD
blob8957ba10dc0c4840dfc9405950a5dde19d5102a1
1 # Contributor: Connor Behan <connor.behan@gmail.com>
3 pkgname=pida-hg
4 pkgver=2727
5 pkgrel=1
6 pkgdesc="Python Integrated Development Application"
7 arch=('i686' 'x86_64')
8 url="http://pida.co.uk/"
9 license=('custom')
10 depends=('vte' 'python-simplejson' 'pygtkhelpers-hg' 'dbus-python' 'python2-argparse' 'python2-logbook' 'python-notify' 'python2-py')
11 makedepends=('mercurial' 'python2-distribute')
12 optdepends=('anyvc: version control integration')
13 provides=('pida')
14 conflicts=('pida')
15 source=(pida.desktop nodrm.diff)
16 install=(pida.install)
17 # Do you get 404 errors if you use the standard "_hgroot" and "_hgrepo"?
18 __hgroot=http://bitbucket.org/aafshar/pida-main
19 __hgrepo=pida
21 build() {
22   cd $srcdir
23   
24   msg "Connecting to $__hgroot"
25   if [ -d $__hgrepo ]; then
26     cd $__hgrepo
27     hg pull -u || return 1
28     msg2 "Finished updating the local repository!"
29   else
30     hg clone $__hgroot $__hgrepo || return 1
31     msg2 "Initial pull complete!"
32   fi
34   rm -rf ${srcdir}/${__hgrepo}-build
35   cp -a ${srcdir}/${__hgrepo} ${srcdir}/${__hgrepo}-build || return 1
36   cd ${srcdir}/${__hgrepo}-build
37   
38   patch -Np1 -i $srcdir/nodrm.diff || return 1
39   python2 setup.py install --root=$startdir/pkg/ --prefix=/usr
41   install -Dm644 COPYING \
42     $startdir/pkg/usr/share/licenses/pida/LICENSE
43   
44   install -Dm644 pida/resources/pixmaps/pida-icon.png \
45     $startdir/pkg/usr/share/pixmaps/pida.png
46   install -Dm644 $startdir/src/pida.desktop \
47     $startdir/pkg/usr/share/applications/pida.desktop
49 md5sums=('0216466cf5f64238c90b5e07df71ce3a' '479c24a04069112f610667f9746011d4')