# Contributor: sev # Maintainer: sev _pkgname=ldap0 pkgname=py3-$_pkgname pkgver=1.4.10 pkgrel=1 pkgdesc="Module package for implementing LDAP clients" url="https://code.stroeder.com/pymod/python-ldap0.git" arch="all" license="Apache-2.0" depends="py3-asn1 py3-asn1-modules" makedepends="python3-dev py3-setuptools openldap-dev" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { # XXX: fix openldap: https://stackoverflow.com/a/70207990 if [ ! -e /usr/lib/libldap_r.so ]; then echo -n "INPUT ( libldap.so )" | sudo tee /usr/lib/libldap_r.so >/dev/null fi python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums=" ef4da17e78594ba3761c24ef63a8c6a8194fd4d3b8152006133e26d2c6b6ff164bd5221725bb833f9a469051dfa4aa438f2bfa3fab4e3f74721d8a626e39ff77 ldap0-1.4.10.tar.gz "