# $Id: PKGBUILD 72241 2010-03-13 20:27:07Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=apr-util
pkgver=1.3.9
pkgrel=4
pkgdesc="The Apache Portable Runtime"
arch=('i686' 'x86_64')
url="http://apr.apache.org/"
depends=('apr>=1.4.2' 'gdbm' 'expat' 'db>=4.8' 'libldap' 'unixodbc')
options=('!libtool')
license=('APACHE')
source=("http://www.apache.org/dist/apr/apr-util-${pkgver}.tar.bz2")
md5sums=('29dd557f7bd891fc2bfdffcfa081db59')

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 || return 1
	make || return 1
	make DESTDIR="${pkgdir}" install || return 1
}