python-markupsafe/PKGBUILD

30 lines
957 B
Bash
Raw Permalink Normal View History

2024-10-15 22:37:28 +08:00
# 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 <future_linux@163.com>
pkgname=python-markupsafe
2024-11-04 00:21:14 +08:00
pkgver=3.0.2
2024-10-15 22:37:28 +08:00
pkgrel=1
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('x86_64')
url="https://palletsprojects.com/p/markupsafe/"
2024-11-04 00:21:14 +08:00
license=('BSD-3-Clause')
depends=('glibc' 'python')
2024-10-15 22:37:28 +08:00
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
2024-11-04 00:21:14 +08:00
source=(https://pypi.org/packages/source/M/MarkupSafe/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0)
2024-10-15 22:37:28 +08:00
build() {
2024-11-04 00:21:14 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 22:37:28 +08:00
2024-11-04 00:21:14 +08:00
python3 -m build -nw
2024-10-15 22:37:28 +08:00
}
package() {
2024-11-04 00:21:14 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 22:37:28 +08:00
2024-11-04 00:21:14 +08:00
python3 -m installer -d ${pkgdir} dist/*.whl
2024-10-15 22:37:28 +08:00
}