# Maintainer: Carl Smedstad # Contributor: Luis Martinez # Contributor: Ronan Pigott pkgname=python-pypresence _name=${pkgname#python-} pkgver=4.3.0 pkgrel=2 pkgdesc="Discord RPC and Rich Presence wrapper library" url="https://github.com/qwertyquerty/pypresence" arch=(any) license=(MIT) depends=(python) makedepends=( python-build python-installer python-setuptools python-sphinx python-wheel ) source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('958a5bb2f28c3120c89c68cc242abd8e72e2dac9aaf9be36b7c7a6217dcf4669') _archive="$_name-$pkgver" build() { cd "$_archive" python -m build --wheel --no-isolation sphinx-build -b man docs/sphinx man } package() { cd "$_archive" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 -t "$pkgdir/usr/share/man/man1" man/pypresence.1 install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }