summaryrefslogtreecommitdiff
path: root/community/python2-ldap/PKGBUILD
blob: dc93ecfbeb6af4e659e37c259f119d272963fd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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' 'mips64el')
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
}