blob: 4fe0ea02606a6a7a9a9fd14a0edc63a6ccf133ef (
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
|
# Maintainer: JakobDev<jakobdev at gmx dot de>
pkgname=python-appstream-python
pkgver=0.8.1
pkgrel=1
pkgdesc=" A Python library for dealing with Freedesktop Appstream data "
arch=("any")
url="https://codeberg.org/JakobDev/appstream-python"
license=("BSD")
depends=("python" "python-requests" "python-lxml")
makedepends=("python-setuptools" "python-build" "python-installer" "python-wheel" "python-sphinx" "python-sphinx_rtd_theme" "make")
source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/JakobDev/appstream-python/archive/${pkgver}.tar.gz")
sha256sums=("90e9f83b438b639faa40e53f24e8329fd1d59e1ba454fb45bdd6edf8d9a82c62")
build() {
cd "appstream-python"
python -m build --wheel --no-isolation
cd docs
make man html
}
package() {
cd "appstream-python"
python -m installer --destdir "$pkgdir" dist/*.whl
install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "docs/_build/man/appstream-python.1" -t "${pkgdir}/usr/share/man/man1"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
cp -r docs/_build/html/* "${pkgdir}/usr/share/doc/${pkgname}"
}
|