# $Id: PKGBUILD 2646 2009-09-19 18:26:06Z ibiru $ # Maintainer: Sergej Pupykin # Contributor: Morgan LEFIEUX pkgname=python-ldap pkgver=2.3.9 pkgrel=2 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=('python' 'libldap>=2.4.18') source=(http://pypi.python.org/packages/source/p/python-ldap/python-ldap-$pkgver.tar.gz) md5sums=('a9f9f16338288d118a1ae6266c993247') build() { cd $startdir/src/$pkgname-$pkgver sed -i 's|||' Modules/LDAPObject.c python setup.py build || return 1 python setup.py install --root $startdir/pkg || return 1 install -D -m644 LICENCE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE }