pkgname=python-asciidoc pkgver=10.2.1 pkgrel=1 pkgdesc="AsciiDoc is a text document format for writing things" arch=('x86_64') url="https://pypi.org/project/asciidoc" license=('GPL-2.0-or-later') depends=('python' 'libxslt' 'docbook-xsl') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') source=(https://github.com/asciidoc-py/asciidoc-py/releases/download/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(aa7be8ae894f6cc1e67784d76ffa6c6b9e9f96efdc695db43c6bd63820e5072b) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl install -vdm755 ${pkgdir}/usr/share/doc/${pkgname#*-}-${pkgver} cp -r doc/* ${pkgdir}/usr/share/doc/${pkgname#*-}-${pkgver} install -Dm0644 -t ${pkgdir}/usr/share/man/man1/ doc/*.1 }