]> git.sev.monster Git - aports.git/commitdiff
testing/py3-ldap0: new aport
authorsev <git@sev.monster>
Sat, 29 Jan 2022 19:00:00 +0000 (13:00 -0600)
committersev <git@sev.monster>
Mon, 28 Oct 2024 22:47:27 +0000 (17:47 -0500)
testing/py3-ldap0/APKBUILD [new file with mode: 0644]

diff --git a/testing/py3-ldap0/APKBUILD b/testing/py3-ldap0/APKBUILD
new file mode 100644 (file)
index 0000000..7e5301f
--- /dev/null
@@ -0,0 +1,34 @@
+# Contributor: sev <alpine@sev.monster>
+# Maintainer: sev <alpine@sev.monster>
+pkgname=py3-ldap0
+pkgver=1.4.7
+pkgrel=0
+pkgdesc="Module package for implementing LDAP clients"
+url="https://code.stroeder.com/pymod/python-ldap0.git"
+arch="all"
+license="Apache-2.0"
+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="
+d0534841c636443553dfc073ca73242f769cbdc863676641bf1a69f9d7fa38d9df1617b370f1668358220f59a70d79de72d6d2407e0c68fdaf0117b1773e0301  python-ldap0-v1.4.7.tar.gz
+"
This page took 0.056752 seconds and 4 git commands to generate.