1 # Contributor: hur1can3 <hur1can3@hotmail.com>
2 # Maintainer: Clément Démoulins <clement@archivel.fr>
7 pkgdesc="Automatic TV episode file renamer using Python, It uses data from thetvdb.com via tvdb_api."
9 url="http://github.com/dbr/tvnamer/"
11 depends=('python-simplejson' 'tvdb_api-git')
12 makedepends=('git' 'python2-distribute')
15 _gitroot="git://github.com/dbr/tvnamer.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1