# Maintainer: Alexey Pavlov pkgname=asciidoc pkgver=10.2.1 pkgrel=2 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=( "purl: pkg:pypi/asciidoc" ) license=('GPL') depends=('python' 'libxslt' 'docbook-xsl') makedepends=( 'gcc' "python-setuptools" "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=('aa7be8ae894f6cc1e67784d76ffa6c6b9e9f96efdc695db43c6bd63820e5072b') 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" }