blob: 91ad1005090677f490996e6cb13fdeadd0a6f25d (
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: Jax Young <jaxvanyang@gmail.com>
pkgname=autoremove-torrents-hnr
_pkgname="${pkgname//-/_}"
pkgver=2.0.0
pkgrel=1
pkgdesc="Automatically remove torrents according to your strategies (H&R version)"
arch=(any)
url="https://pypi.org/project/autoremove-torrents-hnr"
license=('MIT')
provides=('autoremove-torrents')
conflicts=('autoremove-torrents')
depends=(
'python-deluge-client'
'python-ply'
'python-psutil'
'python-yaml'
'python-requests'
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${pkgname::1}/${_pkgname}/${pkgname//-/_}-$pkgver.tar.gz")
sha256sums=('9ead2b7b0bb50188fcf8f9514091965082d7f26c31e2ef18643be7ef9d4a2b2b')
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
# skip check because PyPI source doesn't include test files
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|