Date: Wednesday, June 8, 2022 @ 01:32:01 Author: grawlinson Revision: 1228606
addpkg: python-psycopg-pool 3.1.1-2 Added: python-psycopg-pool/ python-psycopg-pool/repos/ python-psycopg-pool/trunk/ python-psycopg-pool/trunk/PKGBUILD ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Added: python-psycopg-pool/trunk/PKGBUILD =================================================================== --- python-psycopg-pool/trunk/PKGBUILD (rev 0) +++ python-psycopg-pool/trunk/PKGBUILD 2022-06-08 01:32:01 UTC (rev 1228606) @@ -0,0 +1,35 @@ +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Guillaume Horel <[email protected]> + +pkgname=python-psycopg-pool +# source is shared with python-psycopg package, hence the weird naming +_pkgname=python-psycopg +pkgver=3.1.1 +pkgrel=2 +pkgdesc='Connection pool for psycopg' +arch=('any') +url='https://www.psycopg.org/psycopg3/' +license=('LGPL3') +depends=('python' 'python-psycopg') +makedepends=('git' 'python-setuptools') +_commit='fe5d33d573724fc80945fca1d1c7da22d822dab5' +source=("$_pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$_pkgname" + + git describe --tags | sed 's/^pool-//' +} + +build(){ + cd "$_pkgname/psycopg_pool" + + python setup.py build +} + +package(){ + cd "$_pkgname/psycopg_pool" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +}
