Date: Thursday, April 6, 2023 @ 02:05:18
  Author: felixonmars
Revision: 1438038

archrelease: copy trunk to community-staging-any

Added:
  python-pyproject-metadata/repos/community-staging-any/
  python-pyproject-metadata/repos/community-staging-any/PKGBUILD
    (from rev 1438037, python-pyproject-metadata/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-pyproject-metadata/repos/community-staging-any/PKGBUILD (from 
rev 1438037, python-pyproject-metadata/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 02:05:18 UTC (rev 1438038)
@@ -0,0 +1,34 @@
+# Maintainer:
+
+pkgname=python-pyproject-metadata
+pkgver=0.6.1
+pkgrel=3
+pkgdesc='PEP 621 metadata parsing'
+arch=(any)
+url='https://github.com/FFY00/python-pyproject-metadata'
+license=(MIT)
+depends=(python-packaging)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/FFY00/python-pyproject-metadata/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('4af84f9534a5c71e192e1355e1e99f99e82b97d01411c011ed2f1dff579a7420a0f5d982eea5a032de8549c14191b64334c8e2aeea22fe767837e662e8d8b588')
+
+build() {
+  cd $pkgname-$pkgver
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  pytest -v
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to