1 # Contributor: Connor Behan <connor.behan@gmail.com>
3 pkgname=pygtkhelpers-hg
6 pkgdesc="Helper library providing easy interaction with PyGTK"
8 url="http://packages.python.org/pygtkhelpers"
11 provides=('python2-pygtkhelpers-hg')
12 makedepends=('mercurial')
13 # Do you get 404 errors if you use the standard "_hgroot" and "_hgrepo"?
14 __hgroot=http://bitbucket.org/aafshar/pygtkhelpers-main
20 msg "Connecting to $__hgroot"
21 if [ -d $__hgrepo ]; then
23 hg pull -u || return 1
24 msg2 "Finished updating the local repository!"
26 hg clone $__hgroot $__hgrepo || return 1
27 msg2 "Initial pull complete!"
30 rm -rf ${srcdir}/${__hgrepo}-build
31 cp -a ${srcdir}/${__hgrepo} ${srcdir}/${__hgrepo}-build || return 1
32 cd ${srcdir}/${__hgrepo}-build
34 python2 setup.py install --root=$startdir/pkg/ --prefix=/usr