summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 993f526f10e0333ed85c691442a558df7f44579e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Clément Démoulins <clement@archivel.fr>

_pkgname=python-tvdb_api
pkgname=$_pkgname-git
pkgver=1.9.r25.g8f34a0d
pkgrel=1
pkgdesc="Easy to use interface to thetvdb.com"
arch=('any')
url="https://github.com/dbr/tvdb_api"
license=('GPL')
depends=('python-requests-cache')
makedepends=('git' 'python-setuptools')
provides=($_pkgname)
conflicts=($_pkgname)
source=($_pkgname::git://github.com/dbr/tvdb_api.git)
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  python setup.py build
}

package() {
  cd $_pkgname
  python setup.py install --root="$pkgdir/" --optimize=1
}