]> git.sev.monster Git - aports.git/blob - testing/py3-ldap0/APKBUILD
testing/py3-ldap0: fix dependencies
[aports.git] / testing / py3-ldap0 / APKBUILD
1 # Contributor: sev <alpine@sev.monster>
2 # Maintainer: sev <alpine@sev.monster>
3 pkgname=py3-ldap0
4 pkgver=1.4.9
5 pkgrel=1
6 pkgdesc="Module package for implementing LDAP clients"
7 url="https://code.stroeder.com/pymod/python-ldap0.git"
8 arch="all"
9 license="Apache-2.0"
10 depends="py3-asn1 py3-asn1-modules"
11 makedepends="python3-dev py3-setuptools openldap-dev"
12 # unreliable source
13 #source="https://code.stroeder.com/pymod/python-ldap0/tags"
14 source="https://gitlab.com/ae-dir/python-ldap0/-/archive/v$pkgver/python-ldap0-v$pkgver.tar.gz"
15 builddir="$srcdir/python-ldap0-v$pkgver"
16
17 build() {
18         # XXX: fix openldap: https://stackoverflow.com/a/70207990
19         if [ ! -e /usr/lib/libldap_r.so ]; then
20                 echo -n "INPUT ( libldap.so )" | sudo tee /usr/lib/libldap_r.so >/dev/null
21         fi
22         python3 setup.py build
23 }
24
25 check() {
26         python3 setup.py check
27 }
28
29 package() {
30         python3 setup.py install --prefix=/usr --root="$pkgdir"
31 }
32
33 sha512sums="
34 ddc87b3a23e1dbdbff10e3b56f5e58a5e87cabd30172aeec01eb7a9888e80ed6cfe337ec0b856d98ef7eb1331bc50fb79552ea214e32137525ec6a2ff59e982a  python-ldap0-v1.4.9.tar.gz
35 "
This page took 0.046842 seconds and 4 git commands to generate.