commit 734ad412a71bd1faba8ce3b4d42172e7d425c89b Author: xhaa123 Date: Mon Nov 4 11:32:38 2024 +0800 python-hatchling 1.22.4-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..31f7c8e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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-hatchling +pkgver=1.22.4 +pkgrel=1 +pkgdesc="Extensible, standards compliant build backend used by Hatch" +arch=('x86_64') +url="https://github.com/pypa/hatch/tree/master/backend" +license=('MIT') +depends=( + 'python' + 'python-packaging' + 'python-pathspec' + 'python-pluggy' + 'python-editables' + 'python-trove-classifiers' +) +makedepends=('python-build' 'python-installer') +source=(https://github.com/pypa/hatch/archive/${pkgname#*-}-v${pkgver}/hatch-${pkgname#*-}-v${pkgver}.tar.gz) +sha256sums=(8af047e70167647f412c3237eaa305e2dc5ec62e4909e12e29cce28829fa6e9d) + +build() { + cd hatch-${pkgname#*-}-v${pkgver}/backend + + python3 -m build --wheel --no-isolation +} + +package() { + cd hatch-${pkgname#*-}-v${pkgver}/backend + + python3 -m installer --destdir="$pkgdir" dist/*.whl +}