[arch-commits] Commit in python-psycopg2/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat Sep 28 15:11:18 UTC 2019


    Date: Saturday, September 28, 2019 @ 15:11:17
  Author: foxboron
Revision: 512010

upgpkg: python-psycopg2 2.8.3-2

Modified:
  python-psycopg2/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 15:08:41 UTC (rev 512009)
+++ PKGBUILD	2019-09-28 15:11:17 UTC (rev 512010)
@@ -4,16 +4,15 @@
 # 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')
+pkgname=python-psycopg2
 pkgver=2.8.3
-pkgrel=1
+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')
+depends=('python' 'postgresql-libs')
+makedepends=('python-setuptools' 'postgresql-libs')
 source=(http://initd.org/psycopg/tarballs/PSYCOPG-2-8/psycopg2-$pkgver.tar.gz{,.asc})
 validpgpkeys=('8AD609956CF1899418E19A856013BD3AFCF957DE')
 sha512sums=('74268f6d05922c968d46ad62a49b4af54dc30463daa67cc0f32d5930c366596f9a1b2f368f2b38c8a9d45bfdcffb13be469a5cbf3911c62d163bea5c7a3ad928'
@@ -22,19 +21,9 @@
   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')
-
+package() {
   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