2013-11-12 08:37:42 +08:00
|
|
|
# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/ldb/
|
|
|
|
|
|
|
|
pkgname=ldb
|
2017-01-05 08:14:43 +08:00
|
|
|
pkgver=1.1.29
|
2013-11-12 08:37:42 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A schema-less, ldap like, API and database"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://ldb.samba.org/"
|
2015-09-21 06:36:45 +08:00
|
|
|
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz
|
|
|
|
http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.asc)
|
2013-11-12 08:37:42 +08:00
|
|
|
license=('GPL3')
|
|
|
|
depends=('talloc' 'tevent' 'tdb' 'popt')
|
2015-12-17 08:37:15 +08:00
|
|
|
makedepends=('python2' 'docbook-xsl')
|
2013-11-12 08:37:42 +08:00
|
|
|
optdepends=('python2: for python bindings')
|
2017-01-05 08:14:43 +08:00
|
|
|
md5sums=('9c90abfb94c1e2a693399392cf4cddb9'
|
2015-12-17 08:37:15 +08:00
|
|
|
'SKIP')
|
2015-09-21 06:36:45 +08:00
|
|
|
validpgpkeys=('9147A339719518EE9011BCB54793916113084025') # Samba Library Distribution Key <samba-bugs@samba.org>
|
2013-11-12 08:37:42 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# change to use python2
|
|
|
|
sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" buildtools/bin/waf
|
|
|
|
export PYTHON=/usr/bin/python2
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-rpath-install \
|
|
|
|
--bundled-libraries=NONE \
|
|
|
|
--builtin-libraries=replace \
|
|
|
|
--with-modulesdir=/usr/lib/ldb/modules \
|
|
|
|
--with-privatelibdir=/usr/lib/ldb
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
make DESTDIR=${pkgdir}/ install
|
|
|
|
}
|