Date: Sunday, January 22, 2023 @ 07:18:58 Author: grawlinson Revision: 1387652
addpkg: python-apeye 1.3.0-1 Added: python-apeye/ python-apeye/repos/ python-apeye/trunk/ python-apeye/trunk/PKGBUILD ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Added: python-apeye/trunk/PKGBUILD =================================================================== --- python-apeye/trunk/PKGBUILD (rev 0) +++ python-apeye/trunk/PKGBUILD 2023-01-22 07:18:58 UTC (rev 1387652) @@ -0,0 +1,53 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-apeye +pkgver=1.3.0 +pkgrel=1 +pkgdesc='Handy tools for working with URLs and APIs' +arch=('any') +url='https://apeye.readthedocs.io/' +license=('MIT') +depends=( + 'python' + 'python-apeye-core' + 'python-domdf-python-tools' + 'python-platformdirs' + 'python-requests' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-flit-core' +) +#checkdepends=('') +optdepends=( + 'python-cachecontrol: rate limiting' + 'python-lockfile: rate limiting' + 'python-ruamel-yaml: yaml serializer' + 'python-pyaml: yaml serializer' +) +_commit='8a31e4b23df577610a1a9589b1d2a15e1cf86bda' +source=("$pkgname::git+https://github.com/domdfcoding/apeye#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}
