projects/aports·blob master · refs

46 lines · 1.1 KiB

1# Contributor: Fabricio Silva <[email protected]>
2# Maintainer: Fabricio Silva <[email protected]>
3pkgname=autoremove-torrents
4pkgver=1.5.5
5pkgrel=1
6pkgdesc="Automatically remove torrents according to your strategies."
7url="https://github.com/jerrymakesjelly/autoremove-torrents"
8arch="noarch"
9license="MIT"
10depends="
11 py3-requests
12 py3-yaml
13 py3-ply
14 py3-deluge-client
15 "
16makedepends="
17 py3-gpep517
18 py3-setuptools
19 py3-setuptools_scm
20 py3-wheel
21 py3-sphinx
22 py3-sphinx_rtd_theme
23 "
24subpackages="$pkgname-pyc $pkgname-doc"
25source="https://github.com/jerrymakesjelly/autoremove-torrents/archive/$pkgver/autoremove-torrents-$pkgver.tar.gz"
26options="!check" # tests needs live instance for the clients
27
28build() {
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
36package() {
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
44sha512sums="
45eaef4ee9c5aca1e7ac89ce66899f4eecd843af7d3be93bd2d4b13b0f5909a73c7299b94e49273d43dd0fb713ca41366a027be9b67acfa19d776c8cdbd2bbfeac autoremove-torrents-1.5.5.tar.gz
46"