void-packages/srcpkgs/python-ldap/template
2016-05-10 00:15:25 +02:00

20 lines
761 B
Bash

# Template file for 'python-ldap'
pkgname=python-ldap
version=2.4.25
revision=3
build_style=python-module
pycompile_module="ldap lidf.py dsml.py ldapurl.py"
hostmakedepends="python-devel"
makedepends="python-devel libldap-devel libsasl-devel libressl-devel"
depends="python-pyasn1-modules"
short_desc="Python modules for implementing LDAP clients"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="PSF"
homepage="https://www.python-ldap.org"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=62d00dbc86f3f9b21beacd9b826e8f9895f900637a60a6d4e7ab59a1cdc64e56
pre_build() {
sed -i "s,/usr/include/sasl,${XBPS_CROSS_BASE}/usr/include/sasl," setup.cfg
sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
}