Date: Monday, February 26, 2018 @ 17:23:30 Author: felixonmars Revision: 298578
addpkg: python-ldap3 2.4.1-1 Added: python-ldap3/ python-ldap3/repos/ python-ldap3/trunk/ python-ldap3/trunk/PKGBUILD ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Added: python-ldap3/trunk/PKGBUILD =================================================================== --- python-ldap3/trunk/PKGBUILD (rev 0) +++ python-ldap3/trunk/PKGBUILD 2018-02-26 17:23:30 UTC (rev 298578) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Simon Sapin <simon dot sapin at exyr dot org> +# Contributor: Kyle Keen <keen...@gmail.com> + +pkgbase=python-ldap3 +pkgname=(python-ldap3 python2-ldap3) +pkgver=2.4.1 +pkgrel=1 +pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python client library" +url="https://github.com/cannatag/ldap3" +license=('LGPL') +arch=('any') +makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools') +checkdepends=('python-nose' 'python2-nose') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/cannatag/ldap3/archive/v$pkgver.tar.gz") +sha512sums=('a798d14827325ffcd110a6ba9c5911f73dd62937965bb79b1cff0effbab49bfd6d4d9325e2c1fa9523ad622ccb8e1a924ecb7aa1be223e5d3b556e4b96f790dd') + +prepare() { + cp -a ldap3-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/ldap3-$pkgver + python setup.py build + + cd "$srcdir"/ldap3-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/ldap3-$pkgver + nosetests3 -s test || warning "Tests require a running LDAP server" + + cd "$srcdir"/ldap3-$pkgver-py2 + nosetests2 -s test || warning "Tests require a running LDAP server" +} + +package_python-ldap3() { + depends=('python-pyasn1') + + cd ldap3-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-ldap3() { + depends=('python2-pyasn1') + + cd ldap3-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} Property changes on: python-ldap3/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property