# Maintainer: Alexey Pavlov pkgname=asciidoc pkgver=10.2.0 pkgrel=3 pkgdesc='Text document format for short documents, articles, books and UNIX man pages.' arch=('any') url='https://asciidoc.org/' msys2_repository_url="https://github.com/asciidoc-py/asciidoc-py" msys2_references=( "pypi:asciidoc" ) license=('GPL') depends=('python' 'libxslt' 'docbook-xsl') makedepends=( 'gcc' "python-setuptools" "python-wheel" "python-build" "python-installer" ) # optdepends=('lilypond: music-filter' # 'imagemagick: music-filter (used in conjunction with lilypond)' # 'source-highlight: source-highlight-filter' # 'dblatex: pdf generation' # 'fop: alternative pdf generation' # 'lynx: text generation' # 'w3m: text generation (alternative to lynx)') source=("https://github.com/asciidoc-py/asciidoc-py/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('237b2ba5c35c0ae7ccd4cd44ebf1d87c20b2695dae01798954416d492ef7fa0e') build() { cd "${srcdir}/${pkgname}-${pkgver}" python -m build --wheel --skip-dependency-check --no-isolation } package() { cd "${srcdir}/${pkgname}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/asciidoc/LICENSE" }