1 # Template file for 'python-ldap'
5 build_style=python-module
6 pycompile_module="ldap ldapurl.py ldif.py slapdtest"
7 hostmakedepends="python-setuptools python3-setuptools"
8 makedepends="python-devel python3-devel libldap-devel"
9 depends="python-pyasn1-modules"
10 short_desc="Python2 modules for implementing LDAP clients"
11 maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
13 homepage="https://www.python-ldap.org"
14 distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
15 checksum=41975e79406502c092732c57ef0c2c2eb318d91e8e765f81f5d4ab6c1db727c5
18 sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
21 python3-ldap_package() {
22 depends="python3-pyasn1-modules"
23 short_desc="${short_desc/Python2/Python3}"
24 pycompile_module="ldap ldapurl.py ldif.py slapdtest"
26 vmove usr/lib/python3*