PKGBUILDs/extra/ldb/PKGBUILD
2013-04-12 20:55:30 +00:00

44 lines
1.2 KiB
Bash

# $Id$
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Marco A Rojas <marquicus at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - pkgrel to 2.1 (due to out of sync aur pkgrel bump)
# - bump to 2.2 on update to -2, remove when superceded by upstream
pkgname=ldb
pkgver=1.1.15
pkgrel=2,1
pkgdesc="A schema-less, ldap like, API and database"
arch=('i686' 'x86_64')
url="http://ldb.samba.org/"
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz)
license=('GPL3')
depends=('talloc' 'tevent' 'tdb' 'popt')
makedepends=('python2')
optdepends=('python2: for python bindings')
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
}
md5sums=('97ee9b455f6a547fb2b3b5a7836c41d7')