Date: Saturday, October 8, 2022 @ 21:34:01
Author: grawlinson
Revision: 1324435
archrelease: copy trunk to community-any
Added:
python-fqdn/repos/community-any/
python-fqdn/repos/community-any/PKGBUILD
(from rev 1324434, python-fqdn/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-fqdn/repos/community-any/PKGBUILD (from rev 1324434,
python-fqdn/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-10-08 21:34:01 UTC (rev 1324435)
@@ -0,0 +1,48 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-fqdn
+pkgver=1.5.1
+pkgrel=1
+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
+}