updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tvdb_api-git / PKGBUILD
blob60973ac365e389bbd0eefaf4b6b541171aee4158
1 # Maintainer: Clément Démoulins <clement@archivel.fr>
3 pkgname=tvdb_api-git
4 pkgver=20101019
5 pkgrel=1
6 pkgdesc="easy to use interface to thetvdb.com"
7 arch=('any')
8 url="http://github.com/dbr/tvdb_api/"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('git' 'python2' 'setuptools')
12 provides=('tvdb_api')
13 conflicts=('tvdb_api')
16 _gitroot="git://github.com/dbr/tvdb_api.git"
17 _gitname="tvdb_api"
19 build() {
20         cd "$srcdir"
21         msg "Connecting to GIT server...."
23         if [ -d $_gitname ] ; then
24                 cd $_gitname && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone $_gitroot $_gitname
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
33         rm -rf "$srcdir/$_gitname-build"
34         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35         cd "$srcdir/$_gitname-build"
36   
37         python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
38