updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / tvdb_api / PKGBUILD
blob134a155649ad5917f99f47aea82e55c86eb702d9
1 # Maintainer: Clément Démoulins <clement@archivel.fr>
3 pkgname=tvdb_api
4 pkgver=1.5
5 pkgrel=2
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=('setuptools')
12 provides=('tvdb_api')
14 source=(http://github.com/dbr/tvdb_api/tarball/$pkgver)
15 md5sums=('d66591cee24f6ce29e80c005a5fa66b5')
17 build() {
18     cd "$srcdir/dbr-tvdb_api-d7a5fe6"
19     python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
20     find $pkgdir -type f -name '*.py' -exec sed -ri '1 s%\#!/usr/bin/(env python)|(python)%\#!/usr/bin/env python2%' {} \;
21