blob: 6b24ba190d9104106ab024eb9c4db2c5f2ce03ac (
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
35
36
|
# Maintainer: willemw <willemw12@gmail.com>
pkgname=tv-overlord-git
pkgver=r449.df545ec
pkgrel=1
pkgdesc='Download and manage TV shows'
arch=(any)
url=https://bitbucket.org/tvoverlord/tv-overlord
license=(GPL)
depends=(python-beautifulsoup4 python-click python-colorama python-dateutil python-feedparser python-tvdb_api)
makedepends=(git python-build python-installer python-wheel python-setuptools)
optdepends=('deluge: torrent client' 'transmission-cli: torrent client')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
git -C $pkgname clean -dfx
sed -i "s|'tvoverlord/search_providers'.*||" $pkgname/setup.py
}
build() {
cd $pkgname
python -m build --wheel --no-isolation
}
package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
}
|