# $Id: PKGBUILD 22194 2008-12-22 21:57:23Z tpowa $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=tdb
pkgver=3.2.6
pkgrel=2
# We use the 'A' to fake out pacman's version comparators.  Samba chooses
# to append 'a','b',etc to their subsequent releases, which pamcan
# misconstrues as alpha, beta, etc.  Bad samba!
_realver=3.2.6
pkgdesc="A Trivial Database similar to GDBM but allows simultaneous commits"
arch=(i686 x86_64)
license=('GPL3')
url="www.samba.org"
source=(http://us1.samba.org/samba/ftp/samba-${_realver}.tar.gz)
options=(!makeflags)

build() {
   cd ${srcdir}/samba-${_realver}/source/lib/tdb
   ./autogen.sh
   ./configure --prefix=/usr
   make || return 1
   make DESTDIR=$startdir/pkg install
   ln -sf /usr/lib/libtdb.so.1.1.1 ${pkgdir}/usr/lib/libtdb.so.1
   ln -sf /usr/lib/libtdb.so.1.1.1 ${pkgdir}/usr/lib/libtdb.so
}
md5sums=('0cd27c7afbb8211616eea4010f32271c')