summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df0324b4f42dbae154b4914ca001c5218bc66eaf (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.3.44
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')
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=('f0b4cd5ecfbd1a648dc76ec9e5a9048a0c17f3bc42f684b6cfde2573d099a6d2')
b2sums=('f4bb74e29d1e7daa1d080a3cdb5c0f1a94acb019b738dd5551e20d330fe5b622c88b0573d3a1a0083a26067498fae4fcac71ed18df5f43f95855fa6a8ad40f3b')

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"
}