blob: 638b7a42c5b038ef7bab4ea96cb81c21ba687eae (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
_pkgname=qbittorrent-api
pkgname="python-$_pkgname"
pkgver=2023.5.48
pkgrel=1
pkgdesc="Python client for qBittorrent v4.1+ Web API"
arch=('any')
url="https://pypi.org/project/$_pkgname"
license=('MIT')
depends=('python' 'python-requests' 'python-urllib3' 'python-six' 'python-setuptools')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rmartin16/qbittorrent-api/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('ef32b80ed15adf4218feab9607989990bb08377db1cc847ba44f1219aa085dd4')
b2sums=('a5b0ae6fde47d8fc9688bd8b551a538cbc741eecc2f9db5922c8e0be7b4f15a33a41bf3bab4fbcbb89a01dd5840a37aea90993b47e23ad656d3607b9214102b0')
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|