29 lines
907 B
Bash
29 lines
907 B
Bash
# Template file for 'python-ldap'
|
|
pkgname=python-ldap
|
|
version=3.1.0
|
|
revision=1
|
|
build_style=python-module
|
|
pycompile_module="ldap ldapurl.py ldif.py slapdtest"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel libldap-devel"
|
|
depends="python-pyasn1-modules"
|
|
short_desc="Python2 modules for implementing LDAP clients"
|
|
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
|
|
license="Python-2.0"
|
|
homepage="https://www.python-ldap.org"
|
|
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=41975e79406502c092732c57ef0c2c2eb318d91e8e765f81f5d4ab6c1db727c5
|
|
|
|
pre_build() {
|
|
sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
|
|
}
|
|
|
|
python3-ldap_package() {
|
|
depends="python3-pyasn1-modules"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pycompile_module="ldap ldapurl.py ldif.py slapdtest"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|