1 # Contributor: Frederic Bezies <fredbezies at gmail dot com>
7 pkgdesc="Download and upload manager for hosting sites like JDownloader, but in GTK. Mercurial branch."
9 url='http://tucaneando.com/index.html'
11 depends=('python-imaging' 'python2' 'pygtk' 'tesseract' 'librsvg' 'python-poster')
12 makedepends=('mercurial')
16 _hgroot="https://${_realname}.googlecode.com/hg/"
22 msg "Connecting to Mercurial server...."
24 if [ -d ${_hgrepo} ] ; then
25 cd ${_hgrepo} && hg pull -u
26 msg "The local files are updated."
28 hg clone ${_hgroot} ${_hgrepo}
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "${srcdir}/${_hgrepo}-build"
35 # cp -r "${srcdir}/${_hgrepo}" "${srcdir}/${_hgrepo}-build"
36 cd "${srcdir}/${_hgrepo}/src"
39 sed -i 's_usr/bin/env python_usr/bin/env python2_' tucan.py
44 cd "$srcdir/${_hgrepo}/src"
47 make DESTDIR=$pkgdir/usr install
48 ln -sf /usr/share/tucan/tucan.py $pkgdir/usr/bin/tucan