blob: 78d85ac2fb93cfb7457f2829fc39ed33d8f4d7ff (
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> | Toss a coin on https://rys.rs/donate
pkgname=python-lynxpresence
_name=${pkgname#python-}
pkgver=4.4.1
pkgrel=2
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=('5ed8884030c9d6051763959502c2ab005dccb468daeb8ae2e174b7b4e9efb7be6f1cff5b1e8a2a289f312b7b5d0dd8a585f52a18bcbcc46a356956dbb19f0fb6')
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
install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/lynxpresence.1
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
|