archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-psycopg2 / repos / community-x86_64 / PKGBUILD
blob430cecfbf99d6f87ae61134705ad8917613625fc
1 # Maintainer: Andrew Crerar <crerar@archlinux.org>
2 # Maintainer: Morten Linderud <foxboron@archlinux.org>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
5 # Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
7 pkgname=python-psycopg2
8 pkgver=2.9.6
9 pkgrel=2
10 pkgdesc="A PostgreSQL database adapter for the Python programming language."
11 arch=('x86_64')
12 url="https://www.psycopg.org/"
13 license=('LGPL3')
14 depends=('python' 'postgresql-libs')
15 makedepends=('python-setuptools' 'postgresql-libs')
16 source=("https://github.com/psycopg/psycopg2/archive/refs/tags/${pkgver}.tar.gz")
17 b2sums=('9b3e1ddb6c23973e7577b27a46599c731edd77bd7017c25f3c5a1d57f89faffe066e5926b3ba4b7f1c7ab3b1ad18966b0f5ee40ceb1b358236cb85fb61d230ce')
18 build(){
19   cd "psycopg2-${pkgver}"
20   sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
21   python setup.py build
24 package() {
25   cd "psycopg2-${pkgver}"
26   python setup.py install --root="$pkgdir" --optimize=1 --skip-build