summaryrefslogtreecommitdiff
path: root/community/python2-ldap/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python2-ldap/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python2-ldap/PKGBUILD')
-rw-r--r--community/python2-ldap/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/python2-ldap/PKGBUILD b/community/python2-ldap/PKGBUILD
new file mode 100644
index 000000000..76ab81e7c
--- /dev/null
+++ b/community/python2-ldap/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 32662 2010-11-16 10:18:17Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Morgan LEFIEUX <comete_AT_archlinuxfr.org>
+
+pkgname=python2-ldap
+pkgver=2.3.12
+pkgrel=1
+pkgdesc="Provides an object-oriented API to access LDAP directory servers from Python programs"
+arch=('i686' 'x86_64')
+url="http://python-ldap.sourceforge.net"
+license=('custom')
+depends=('python2' 'libldap>=2.4.18')
+replaces=('python-ldap')
+source=(http://pypi.python.org/packages/source/p/python-ldap/python-ldap-$pkgver.tar.gz)
+md5sums=('2dadc521b2c2590d9b033894ba5c6f31')
+md5sums=('2dadc521b2c2590d9b033894ba5c6f31')
+
+build() {
+ cd $srcdir/python-ldap-$pkgver
+ sed -i 's|<sasl.h>|<sasl/sasl.h>|' Modules/LDAPObject.c
+ python2 setup.py build
+ python2 setup.py install --root $pkgdir
+ install -D -m644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}