Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

44 lines
1.3 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
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"
}