summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94648f3c21f41b18e94e5b7a35a997aac8c81db4 (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
# Maintainer: devome <evinedeng@hotmail.com>

_pkgname=transmission-rpc
_pipname="${_pkgname//-/_}"
pkgname="python-${_pkgname}"
pkgver=7.0.11
pkgrel=1
pkgdesc="Python module that implements the Transmission bittorent client JSON-RPC protocol"
arch=('any')
url="https://github.com/trim21/${_pkgname}"
license=('MIT')
depends=(python-requests python-typing_extensions)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pipname}-${pkgver}.tar.gz")
sha256sums=('5872322e60b42e368bc9c4724773aea4593113cb19bd2da589f0ffcdabe57963')

build() {
    cd "${_pipname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pipname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}