summaryrefslogtreecommitdiff
path: root/community/python2-ldap/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/python2-ldap/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/python2-ldap/PKGBUILD')
-rw-r--r--community/python2-ldap/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/python2-ldap/PKGBUILD b/community/python2-ldap/PKGBUILD
new file mode 100644
index 000000000..7086a3b52
--- /dev/null
+++ b/community/python2-ldap/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 93180 2013-06-27 12:10:25Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Morgan LEFIEUX <comete_AT_archlinuxfr.org>
+
+pkgname=python2-ldap
+pkgver=2.4.13
+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.26')
+makedepends=('chrpath')
+replaces=('python-ldap')
+source=(http://pypi.python.org/packages/source/p/python-ldap/python-ldap-$pkgver.tar.gz)
+md5sums=('74b7b50267761540451eade44b2049ee')
+
+build() {
+ cd $srcdir/python-ldap-$pkgver
+ sed -i 's|<sasl.h>|<sasl/sasl.h>|' Modules/LDAPObject.c
+ python2 setup.py build
+}
+
+package() {
+ cd $srcdir/python-ldap-$pkgver
+ python2 setup.py install --root $pkgdir
+ install -D -m644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ chrpath -d $pkgdir/usr/lib/python2.7/site-packages/_ldap.so
+}