[arch-commits] Commit in python-ldap/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jul 8 07:59:22 UTC 2018
Date: Sunday, July 8, 2018 @ 07:59:22
Author: felixonmars
Revision: 354651
archrelease: copy trunk to community-staging-x86_64
Added:
python-ldap/repos/community-staging-x86_64/
python-ldap/repos/community-staging-x86_64/PKGBUILD
(from rev 354650, python-ldap/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-ldap/repos/community-staging-x86_64/PKGBUILD (from rev 354650, python-ldap/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-08 07:59:22 UTC (rev 354651)
@@ -0,0 +1,54 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+
+pkgbase=python-ldap
+pkgname=(python-ldap python2-ldap)
+pkgver=3.1.0
+pkgrel=2
+pkgdesc="LDAP client API for Python"
+url="http://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')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-ldap/python-ldap/archive/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('11a20a0bdb4661d5463e7d288ef1f46a2345d1ecdfd433a21aef7ff7e8263b41')
+
+prepare() {
+ cp -a ${pkgbase}-${pkgbase}-$pkgver{,-py2}
+}
+
+build(){
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgbase-$pkgver-py2"
+ python2 setup.py build
+}
+
+check(){
+ cd "$srcdir/$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')
+ 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