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

38 lines
1.0 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=markupsafe
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=3.0.2
pkgrel=2
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('i686' 'x86_64')
license=('spdx:BSD-3-Clause')
url="https://pypi.python.org/pypi/MarkupSafe"
msys2_references=(
"purl: pkg:pypi/markupsafe"
)
depends=("python")
makedepends=(
"gcc"
"python-setuptools"
"python-build"
"python-installer"
)
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
source=("https://pypi.python.org/packages/source/m/markupsafe/markupsafe-${pkgver}.tar.gz")
sha256sums=('ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0')
build() {
cd "${srcdir}/markupsafe-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/markupsafe-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
}