Date: Wednesday, April 5, 2023 @ 18:59:50
Author: felixonmars
Revision: 1437912
archrelease: copy trunk to community-staging-any
Added:
python-hatchling/repos/community-staging-any/
python-hatchling/repos/community-staging-any/PKGBUILD
(from rev 1437911, python-hatchling/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-hatchling/repos/community-staging-any/PKGBUILD (from rev
1437911, python-hatchling/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:59:50 UTC (rev 1437912)
@@ -0,0 +1,32 @@
+# Maintainer: Santiago Torres-Arias <santiago @ usualplace>
+# Contributor: Kaizhao Zhang <[email protected]>
+
+pkgname=python-hatchling
+pkgver=1.13.0
+pkgrel=2
+pkgdesc="A modern project, package, and virtual env manager (backend)"
+arch=('any')
+url="https://github.com/pypa/hatch"
+license=('MIT')
+depends=('python' 'python-tomli' 'python-packaging' 'python-pathspec'
+ 'python-pluggy' 'python-editables')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+
+_name=${pkgname/python-/}
+source=(
+ "${url}/archive/refs/tags/${_name}-v${pkgver}.tar.gz"
+)
+sha256sums=('41e17b56a28fd4e8f69e4cecbea4527491c761998aba8bd2fc71d0d9eadf66b8')
+
+build() {
+ cd "${srcdir}/hatch-${_name}-v${pkgver}"
+ python -m build --wheel --no-isolation backend
+}
+
+package() {
+ cd "${srcdir}/hatch-${_name}-v${pkgver}"
+
+ python -m installer --destdir="$pkgdir" backend/dist/*.whl
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 backend/LICENSE.txt
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}