]> git.sev.monster Git - aports.git/blob - testing/py3-ldap0/APKBUILD
7e5301fc2ae56c950f1b197ebc30b975e6fcb743
[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.7
5 pkgrel=0
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 makedepends="python3-dev py3-setuptools openldap-dev"
11 # unreliable source
12 #source="https://code.stroeder.com/pymod/python-ldap0/tags"
13 source="https://gitlab.com/ae-dir/python-ldap0/-/archive/v$pkgver/python-ldap0-v$pkgver.tar.gz"
14 builddir="$srcdir/python-ldap0-v$pkgver"
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="
33 d0534841c636443553dfc073ca73242f769cbdc863676641bf1a69f9d7fa38d9df1617b370f1668358220f59a70d79de72d6d2407e0c68fdaf0117b1773e0301  python-ldap0-v1.4.7.tar.gz
34 "
This page took 0.024177 seconds and 2 git commands to generate.