summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11b5d6700f29ec956ae78bfcc09fc371962cd1e5 (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
35
36
# Maintainer: Martin Rys <https://rys.rs/contact>

pkgname=python-lynxpresence
_name=${pkgname#python-}
pkgver=4.6.2
pkgrel=1
pkgdesc='Discord RPC and Rich Presence wrapper library'
url='https://github.com/C0rn3j/lynxpresence'
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")
b2sums=('5ecb6d6e233bb5c155025c3ee2e0244fa0fe4c68d70c2f88056277d9f3eee405c1a751eda681470767477a3cd2a789699d174a3b077b6ce9a748b88717aebece')

build() {
	cd $_name-$pkgver

	python -m build --wheel --no-isolation
	sphinx-build -b man docs/sphinx man
}

package() {
	cd $_name-$pkgver

	python -m installer --destdir="$pkgdir" dist/*.whl
	mv man/pypresence.1 man/lynxpresence.1
	install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/lynxpresence.1
	install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}