blob: 44333b38ca186ab79dbf57140bb30496fe0049ec (
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: willemw <willemw12@gmail.com>
# Contributor: Clément Démoulins <clement@archivel.fr>
pkgname=python-tvdb_api-git
pkgver=3.1.r6.gce03821
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-build python-installer python-wheel python-setuptools)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
git -C $pkgname describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
git -C $pkgname clean -dfx
}
build() {
cd $pkgname
python -m build --wheel --no-isolation
}
package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
}
|