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

Morten Linderud foxboron at archlinux.org
Sun Dec 22 13:49:36 UTC 2019


    Date: Sunday, December 22, 2019 @ 13:49:35
  Author: foxboron
Revision: 538841

upgpkg: python-ldap 3.2.0-4

Removed python2

Modified:
  python-ldap/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++------------------------------
 1 file changed, 8 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-22 13:45:56 UTC (rev 538840)
+++ PKGBUILD	2019-12-22 13:49:35 UTC (rev 538841)
@@ -1,52 +1,30 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 # Contributor: Maikel Wever <maikelwever at gmail.com>
 
-pkgbase=python-ldap
-pkgname=(python-ldap python2-ldap)
+pkgname=python-ldap
 pkgver=3.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc="LDAP client API for Python"
 url="https://python-ldap.readthedocs.io/"
 arch=('x86_64')
 license=('MIT')
-makedepends=('python' 'python-setuptools'
-             'python2' 'python2-setuptools'
-	     'python-coverage' 'python2-coverage')
-checkdepends=('openldap' 'python-pyasn1' 'python-pyasn1-modules'
-	      'python2-pyasn1' 'python2-pyasn1-modules')
+depends=('python-pyasn1' 'python-pyasn1-modules' 'libldap')
+makedepends=('python-setuptools' 'python-coverage')
+checkdepends=('openldap' 'python-pyasn1' 'python-pyasn1-modules')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz")
 sha256sums=('ac6736345f5cdcd76fe54ac3ec6182b222c59c68d04c57690e44e449871e5730')
 
-prepare() {
-  cp -a ${pkgbase}-${pkgbase}-$pkgver{,-py2}
-}
-
 build(){
-  cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+  cd "$pkgbase-$pkgbase-$pkgver"
   python setup.py build
-
-  cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
-  python2 setup.py build
 }
 
 check(){
-  cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+  cd "$pkgbase-$pkgbase-$pkgver"
   python -m coverage run --parallel setup.py test
-
-  cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
-  python2 -m coverage run --parallel setup.py test
 }
 
-package_python2-ldap() {
-  depends=('python2' 'python2-pyasn1' 'python2-pyasn1-modules' 'libldap')
-  cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
-  install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-}
-
-package_python-ldap() {
-  depends=('python' 'python-pyasn1' 'python-pyasn1-modules' 'libldap')
+package() {
   cd "$pkgbase-$pkgbase-$pkgver"
   python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
   install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"



More information about the arch-commits mailing list