Date: Friday, April 7, 2023 @ 03:53:36
  Author: felixonmars
Revision: 1440375

archrelease: copy trunk to community-staging-any

Added:
  python-fqdn/repos/community-staging-any/
  python-fqdn/repos/community-staging-any/PKGBUILD
    (from rev 1440373, python-fqdn/trunk/PKGBUILD)

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

Copied: python-fqdn/repos/community-staging-any/PKGBUILD (from rev 1440373, 
python-fqdn/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 03:53:36 UTC (rev 1440375)
@@ -0,0 +1,48 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-fqdn
+pkgver=1.5.1
+pkgrel=2
+pkgdesc='RFC-compliant FQDN validation and manipulation for Python'
+arch=('any')
+url='https://github.com/ypcrts/fqdn'
+license=('MPL2')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+checkdepends=('python-pytest')
+_commit='3a4feda3414bde7b3386e995ed1d2ed36607d4cf'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  pytest -v 
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
+}

Reply via email to