updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / tucan-hg / PKGBUILD
blob0b7a4127e4c9d794dd2ab4165f7bad5af0a31640
1 # Contributor: Frederic Bezies <fredbezies at gmail dot com>
3 pkgname=tucan-hg
4 _realname=tucan
5 pkgver=1378
6 pkgrel=2
7 pkgdesc="Download and upload manager for hosting sites like JDownloader, but in GTK. Mercurial branch."
8 arch=('any')
9 url='http://tucaneando.com/index.html'
10 license=('LGPL3')
11 depends=('python-imaging' 'python2' 'pygtk' 'tesseract' 'librsvg' 'python-poster')
12 makedepends=('mercurial')
13 provides=(tucan)
14 conflicts=(tucan)
16 _hgroot="https://${_realname}.googlecode.com/hg/"
17 _hgrepo=${_realname}
19 build() {
20   cd "${srcdir}"
22   msg "Connecting to Mercurial server...."
24   if [ -d ${_hgrepo} ] ; then
25     cd ${_hgrepo} && hg pull -u
26     msg "The local files are updated."
27   else
28     hg clone ${_hgroot} ${_hgrepo}
29   fi
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"
38    # python2 fix
39   sed -i 's_usr/bin/env python_usr/bin/env python2_' tucan.py
42 package() {
44 cd "$srcdir/${_hgrepo}/src"
45 pwd
47 make DESTDIR=$pkgdir/usr install
48 ln -sf /usr/share/tucan/tucan.py $pkgdir/usr/bin/tucan