summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 303e4f7bc291d7b49701cf247af7e57022c5414a (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
# Maintainer: LinArcX <linarcx@gmail.com>

pkgname=tvdb3_api-git
pkgver=0.1
pkgrel=1
pkgdesc="easy to use interface to thetvdb.com(Python3)"
arch=('any')
url="https://github.com/dbr/tvdb_api"
license=('GPL')
depends=('python' 'python-requests-cache-git')
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
}