# Contributor: sev # Maintainer: sev pkgname=py3-ldap0 pkgver=1.4.9 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" # unreliable source #source="https://code.stroeder.com/pymod/python-ldap0/tags" source="https://gitlab.com/ae-dir/python-ldap0/-/archive/v$pkgver/python-ldap0-v$pkgver.tar.gz" builddir="$srcdir/python-ldap0-v$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=" ddc87b3a23e1dbdbff10e3b56f5e58a5e87cabd30172aeec01eb7a9888e80ed6cfe337ec0b856d98ef7eb1331bc50fb79552ea214e32137525ec6a2ff59e982a python-ldap0-v1.4.9.tar.gz "