commit 676275c2e3e26da09eaa186ce3e4dbdd8e247574 Author: xhaa123 Date: Tue Oct 15 22:37:28 2024 +0800 python-markupsafe 2.1.5-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3e470aa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=python-markupsafe +pkgver=2.1.5 +pkgrel=1 +pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" +arch=('x86_64') +url="https://palletsprojects.com/p/markupsafe/" +license=('BSD') +depends=('python') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') +source=(https://pypi.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz) +sha256sums=(d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b) + +build() { + cd MarkupSafe-${pkgver} + + python3 -m build -nw +} + +package() { + cd MarkupSafe-${pkgver} + + python3 -m installer -d ${pkgdir} dist/*.whl +}