]>
Commit | Line | Data |
---|---|---|
be144bf2 | 1 | # Contributor: sev <sev+alpine@sev.monster> |
2 | # Maintainer: sev <sev+alpine@sev.monster> | |
c5fb4c56 | 3 | _pkgname=ldap0 |
4 | pkgname=py3-$_pkgname | |
3851f9c1 | 5 | pkgver=1.4.10 |
c5fb4c56 | 6 | pkgrel=1 |
c128403a | 7 | pkgdesc="Module package for implementing LDAP clients" |
8 | url="https://code.stroeder.com/pymod/python-ldap0.git" | |
9 | arch="all" | |
10 | license="Apache-2.0" | |
57d95020 | 11 | depends="py3-asn1 py3-asn1-modules" |
c128403a | 12 | makedepends="python3-dev py3-setuptools openldap-dev" |
c5fb4c56 | 13 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" |
14 | builddir="$srcdir/$_pkgname-$pkgver" | |
c128403a | 15 | |
16 | build() { | |
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 | |
20 | fi | |
21 | python3 setup.py build | |
22 | } | |
23 | ||
24 | check() { | |
25 | python3 setup.py check | |
26 | } | |
27 | ||
28 | package() { | |
29 | python3 setup.py install --prefix=/usr --root="$pkgdir" | |
30 | } | |
31 | ||
32 | sha512sums=" | |
c5fb4c56 | 33 | ef4da17e78594ba3761c24ef63a8c6a8194fd4d3b8152006133e26d2c6b6ff164bd5221725bb833f9a469051dfa4aa438f2bfa3fab4e3f74721d8a626e39ff77 ldap0-1.4.10.tar.gz |
c128403a | 34 | " |