blob: 77b98a8018fc26e75372a8afcc3b82d9de891d97 (
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
37
38
39
40
41
|
# Maintainer: Jeremy Gust <jeremy AT plasticsoup DOT net>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
pkgname=python-desktop-notifier
pkgver=6.0.0
pkgrel=2
pkgdesc='Python library for cross-platform desktop notifications'
arch=('any')
url="https://github.com/SamSchott/desktop-notifier"
license=('MIT')
depends=('python'
'python-bidict'
'python-certifi'
'python-charset-normalizer'
'python-dbus-fast'
'python-packaging')
makedepends=('python-build'
'python-installer'
'python-setuptools'
'python-sphinx'
'python-sphinx-autoapi'
'python-sphinx-furo'
'python-sphinx_mdinclude'
'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('b0604b1b92e6b5d74d943c43a125769a8258cc82347590637001b65eff1e1ba9')
build() {
cd "${pkgname#python-}-$pkgver"
python -m build --wheel --no-isolation
cd docs
sphinx-build -b man ./ ./_build/man/
}
package() {
cd "${pkgname#python-}-$pkgver"
python -m installer --destdir="${pkgdir}/" dist/*.whl
install -Dvm644 README.md "${pkgdir}/usr/share/doc/$pkgname/README.md"
install -Dvm644 docs/_build/man/desktop-notifier.1 "${pkgdir}/usr/share/man/man1/$pkgname.1"
install -Dvm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|