upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-sphinx-theme-builder / trunk / PKGBUILD
blob31e9060b257761071ca4f6f719d56d153e2bbe72
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=sphinx-theme-builder
4 pkgname=python-$_pkgname
5 pkgver=0.2.0b2
6 pkgrel=2
7 pkgdesc='Python build backend for Sphinx themes'
8 arch=('any')
9 url='https://github.com/pradyunsg/sphinx-theme-builder'
10 license=('BSD')
11 depends=('python' 'python-packaging' 'python-rich' 'python-tomli' 'python-nodeenv' 'python-setuptools' 'python-pep621' 'python-pyproject-metadata')
12 optdepends=('python-build: CLI'
13             'python-click: CLI'
14             'python-sphinx-autobuild: CLI')
15 makedepends=('python-build' 'python-installer' 'python-flit-core')
16 checkdepends=('python-pytest' 'python-click' 'python-sphinx-autobuild')
17 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
18 sha512sums=('9900812cbb91a2fae666c010caef0fc2d250ff7ef8ae7b0105c72cee678e4be49784530c49c43d0260e22882ca7b89d4dd83da0c5a59cf3f944647f84e9fd6bf')
20 build() {
21   cd $_pkgname-$pkgver
23   python -m build --wheel --no-isolation
26 check() {
27   cd $_pkgname-$pkgver
29   PYTHONPATH=src pytest
32 package() {
33   cd $_pkgname-$pkgver
35   python -m installer --destdir="$pkgdir" dist/*.whl
37   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
40 # vim:set ts=2 sw=2 et: