summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46a511a034ef8fa401b5ad20c09a269d5be07f78 (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
34
# Maintainer: Clément Démoulins <clement@archivel.fr>

pkgname=tvdb_api-git
_realname=tvdb_api
pkgver=20140401
pkgrel=2
pkgdesc="easy to use interface to thetvdb.com"
arch=('any')
url="http://github.com/dbr/tvdb_api/"
license=('GPL')
depends=('python2')
makedepends=('git' 'python2' 'python2-setuptools')
provides=('tvdb_api')
conflicts=('tvdb_api')

source=(${_realname}::git://github.com/dbr/tvdb_api.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${_realname}"
  git log -1 --format="%cd" --date=short | tr -d '-'
}

build() {
  cd "$srcdir/${_realname}"
  python2 setup.py build
}

package() {
  cd "$srcdir/${_realname}"
  python2 setup.py install --root=$pkgdir/ --optimize=1
}

# vim:set ts=2 sw=2 et: