| 1 | # Contributor: Fabricio Silva <[email protected]> |
| 2 | # Maintainer: Fabricio Silva <[email protected]> |
| 3 | pkgname=autoremove-torrents |
| 4 | pkgver=1.5.5 |
| 5 | pkgrel=1 |
| 6 | pkgdesc="Automatically remove torrents according to your strategies." |
| 7 | url="https://github.com/jerrymakesjelly/autoremove-torrents" |
| 8 | arch="noarch" |
| 9 | license="MIT" |
| 10 | depends=" |
| 11 | py3-requests |
| 12 | py3-yaml |
| 13 | py3-ply |
| 14 | py3-deluge-client |
| 15 | " |
| 16 | makedepends=" |
| 17 | py3-gpep517 |
| 18 | py3-setuptools |
| 19 | py3-setuptools_scm |
| 20 | py3-wheel |
| 21 | py3-sphinx |
| 22 | py3-sphinx_rtd_theme |
| 23 | " |
| 24 | subpackages="$pkgname-pyc $pkgname-doc" |
| 25 | source="https://github.com/jerrymakesjelly/autoremove-torrents/archive/$pkgver/autoremove-torrents-$pkgver.tar.gz" |
| 26 | options="!check" # tests needs live instance for the clients |
| 27 | |
| 28 | build() { |
| 29 | gpep517 build-wheel \ |
| 30 | --wheel-dir .dist \ |
| 31 | --output-fd 3 3>&1 >&2 |
| 32 | |
| 33 | sphinx-build -b man docs docs/build |
| 34 | } |
| 35 | |
| 36 | package() { |
| 37 | python3 -m installer -d "$pkgdir" \ |
| 38 | .dist/*.whl |
| 39 | |
| 40 | install -Dm644 docs/build/autoremove-torrents.1 \ |
| 41 | -t "$pkgdir"/usr/share/man/man1/ |
| 42 | } |
| 43 | |
| 44 | sha512sums=" |
| 45 | eaef4ee9c5aca1e7ac89ce66899f4eecd843af7d3be93bd2d4b13b0f5909a73c7299b94e49273d43dd0fb713ca41366a027be9b67acfa19d776c8cdbd2bbfeac autoremove-torrents-1.5.5.tar.gz |
| 46 | " |