[arch-commits] Commit in python-psycopg2/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:03:38 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:03:37
  Author: foutrelis
Revision: 748422

archrelease: copy trunk to community-staging-x86_64

Added:
  python-psycopg2/repos/community-staging-x86_64/
  python-psycopg2/repos/community-staging-x86_64/PKGBUILD
    (from rev 748421, python-psycopg2/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-psycopg2/repos/community-staging-x86_64/PKGBUILD (from rev 748421, python-psycopg2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 04:03:37 UTC (rev 748422)
@@ -0,0 +1,40 @@
+# Maintainer: Andrew Crerar <crerar at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+
+pkgbase=python-psycopg2
+pkgname=('python-psycopg2' 'python2-psycopg2')
+pkgver=2.8.6
+pkgrel=2
+pkgdesc="A PostgreSQL database adapter for the Python programming language."
+arch=('x86_64')
+url="http://initd.org/psycopg/"
+license=('LGPL3')
+makedepends=('python2' 'python2-setuptools'
+             'python' 'python-setuptools' 'postgresql-libs')
+source=(http://initd.org/psycopg/tarballs/PSYCOPG-2-8/psycopg2-$pkgver.tar.gz{,.asc})
+validpgpkeys=('8AD609956CF1899418E19A856013BD3AFCF957DE')
+sha512sums=('1e1d5d8755c6d1a153d84210bf29902afafe853659d709e13abc6bc5772def13779d2394690af1c544384c9c607edc0fe5cf2763244fb346febf9a9e0032b45f'
+            'SKIP')
+build(){
+  cd "$srcdir/psycopg2-$pkgver"
+  sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg
+  python setup.py build
+  python2 setup.py build
+}
+
+package_python-psycopg2() {
+  depends=('python' 'postgresql-libs')
+
+  cd "$srcdir/psycopg2-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-psycopg2() {
+  depends=('python2' 'postgresql-libs')
+
+  cd "$srcdir/psycopg2-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list