# Maintainer: Markus M. May <triplem@tu.archserver.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributorr: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=tdb
pkgver=1.2.9
pkgrel=1
pkgdesc="A Trivia Database similar to GDBM but allows simultaneous commits"
arch=('i686' 'x86_64')
license=('GPL3')
url="http://tdb.samba.org/"
makedepends=('python')
optdepends=('python: for python bindings')
source=("http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('4d97d18bbe9040038d4e003495bb8cd1')

build() {
   cd ${srcdir}/${pkgname}-${pkgver}

   ./configure --prefix=/usr \
               --localstatedir=/var \
               --sysconfdir=/etc/samba
   make
}

package() {
   cd ${srcdir}/${pkgname}-${pkgver}

   make DESTDIR=$pkgdir/ install
}
