From e77a34af5c7690580ac01d079edf09c37b612a1a Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sat, 29 Mar 2025 03:02:10 -0400 Subject: [PATCH] update to 12.3: python-markupsafe --- lfs/python-markupsafe-3.0.2.PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lfs/python-markupsafe-3.0.2.PKGBUILD diff --git a/lfs/python-markupsafe-3.0.2.PKGBUILD b/lfs/python-markupsafe-3.0.2.PKGBUILD new file mode 100644 index 0000000..54567c3 --- /dev/null +++ b/lfs/python-markupsafe-3.0.2.PKGBUILD @@ -0,0 +1,27 @@ +pkgname=python-markupsafe +_name=${pkgname#python-} +pkgver=3.0.2 +pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" +arch=('x86_64') +homepage="https://pypi.python.org/pypi/MarkupSafe" +license=('BSD-3-Clause') +sources=("${_name}-${pkgver}.tar.gz") +urls=("https://pypi.org/packages/source/M/MarkupSafe/${sources[0]}") +md5sums=("cb0071711b573b155cc8f86e1de72167") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD +} + +src_check() { + : +} + +src_install() { + pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${_name} + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}