1 # Contributor: sev <sev+alpine@sev.monster>
2 # Maintainer: sev <sev+alpine@sev.monster>
6 pkgdesc="Module package for implementing LDAP clients"
7 url="https://code.stroeder.com/pymod/python-ldap0.git"
10 depends="py3-asn1 py3-asn1-modules"
11 makedepends="python3-dev py3-setuptools openldap-dev"
13 source="python-ldap0-v$pkgver.tar.gz::https://code.stroeder.com/pymod/python-ldap0/archive/v$pkgver.tar.gz"
14 builddir="$srcdir/python-ldap0"
17 # XXX: fix openldap: https://stackoverflow.com/a/70207990
18 if [ ! -e /usr/lib/libldap_r.so ]; then
19 echo -n "INPUT ( libldap.so )" | sudo tee /usr/lib/libldap_r.so >/dev/null
21 python3 setup.py build
25 python3 setup.py check
29 python3 setup.py install --prefix=/usr --root="$pkgdir"
33 dbe51ef6cf6ab3dc66db488f6db284f63b33c43e8f3d592d85c54098cabe6605aa61b39b92f51d860bdf9b280b2b11a148b8e2ca124aaaadd7ffb4b038b446d0 python-ldap0-v1.4.10.tar.gz