Files
MSYS2-packages/python-docutils/PKGBUILD
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

34 lines
786 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-docutils
_name=${pkgname#python-}
pkgver=0.21.2
pkgrel=2
pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
arch=('any')
url='http://docutils.sourceforge.net'
license=('custom')
depends=('python')
makedepends=(
'python-build'
'python-flit-core'
'python-installer'
)
msys2_references=(
'purl: pkg:pypi/docutils'
)
source=("https://downloads.sourceforge.net/$_name/$_name-$pkgver.tar.gz")
sha256sums=('3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f')
build() {
cd "$_name"-$pkgver
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$_name"-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}