Date: Saturday, October 8, 2022 @ 21:32:10 Author: grawlinson Revision: 1324433
addpkg: python-fqdn 1.5.1-1 Added: python-fqdn/ python-fqdn/repos/ python-fqdn/trunk/ python-fqdn/trunk/PKGBUILD ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Added: python-fqdn/trunk/PKGBUILD =================================================================== --- python-fqdn/trunk/PKGBUILD (rev 0) +++ python-fqdn/trunk/PKGBUILD 2022-10-08 21:32:10 UTC (rev 1324433) @@ -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.md +}
