# $Id: PKGBUILD 4551 2008-07-08 03:25:33Z allan $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=apr-util
pkgver=1.3.2
pkgrel=2
pkgdesc="The Apache Portable Runtime"
arch=('i686' 'x86_64')
url="http://apr.apache.org/"
depends=('apr>=1.3.2' 'gdbm' 'expat>=2.0' 'db>=4.7' 'libldap')
options=('!libtool')
license=('APACHE')
source=("http://www.apache.org/dist/apr/apr-util-${pkgver}.tar.bz2")
md5sums=('aa782fb9ced8b59c8e99419d8cdd1981')

build() {
	cd ${srcdir}/apr-util-${pkgver}

	./configure --prefix=/usr --with-apr=/usr \
		--without-pgsql --without-mysql --without-sqlite2 --without-sqlite3 \
		--with-berkeley-db=/usr --with-gdbm=/usr --with-ldap
	make || return 1
	make DESTDIR=${pkgdir} install
}