# Maintainer: Bruno Santos upstream_name=hawkmoth pkgname=python-sphinx-hawkmoth pkgver=0.16.0 pkgrel=1 pkgdesc='Sphinx autodoc C extension' arch=('i686' 'x86_64') url='https://github.com/jnikula/hawkmoth' license=('BSD2') depends=('python-sphinx' 'clang') makedepends=('python-build' 'python-installer' 'python-wheel') source=('https://github.com/jnikula/hawkmoth/archive/v'$pkgver'.tar.gz') sha256sums=('ae383e3f3c075c4dadb92f3683fc55d4d3197508ae4840139fe2b9aad24def7d') build() { cd $srcdir/$upstream_name-$pkgver python -m build --wheel --no-isolation } package() { cd $srcdir/$upstream_name-$pkgver python -m installer --compile-bytecode=1 --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }