1 # Maintainer: Marco A Rojas <marquicus at gmail dot com>
6 pkgdesc="LDB is a LDAP-like embedded database. It is not at all LDAP standards compliant"
8 url="http://ldb.samba.org/"
9 source=(http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz)
14 md5sums=('61145ad9cfe017ce4fca5cbc77b9552b')
17 # change to use python2
18 sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" \
19 $(find ${srcdir}/${pkgname}-${pkgver} -name 'waf')
21 cd ${srcdir}/${pkgname}-${pkgver}
22 ./configure --prefix=/usr
26 _pyver=`python2 -c 'import sys; print(sys.version[:3])'`
27 cd ${srcdir}/${pkgname}-${pkgver}
29 make DESTDIR=${pkgdir}/ install
31 # remove conflict files of tevent and ldb
32 rm -f ${pkgdir}/usr/bin/{ldbadd,ldbdel,ldbedit,ldbmodify,ldbrename,ldbsearch}
33 rm -f ${pkgdir}/usr/share/man/man?/{ldbadd,ldbdel,ldbedit,ldbmodify,ldbrename,ldbsearch}.1
34 rm -f ${pkgdir}/usr/lib/python${_pyver}/site-packages/_tevent.so*