commit 364ed8079bae13537f3f3d32f273c01d00b9cabf Author: xhaa123 Date: Mon Apr 29 11:26:14 2024 +0800 python-pygments 2.17.2-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c50b3d2 --- /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-pygments +pkgver=2.17.2 +pkgrel=1 +pkgdesc="Python syntax highlighter" +arch=('x86_64') +url="https://pygments.org/" +license=('BSD') +depends=('python-hatchling') +makedepends=('python-build' 'python-installer' 'python-wheel') +source=(https://files.pythonhosted.org/packages/source/P/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}