# $Id: PKGBUILD 8457 2008-08-11 22:13:07Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=apr
pkgver=1.3.2
pkgrel=2
pkgdesc="The Apache Portable Runtime"
arch=('i686' 'x86_64')
url="http://apr.apache.org/"
depends=('e2fsprogs')
options=('!libtool')
license=('APACHE')
source=("http://www.apache.org/dist/apr/apr-${pkgver}.tar.bz2")
md5sums=('a0631c63640176371dd4a5bf13beeee8')

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

	./configure --prefix=/usr --includedir=/usr/include/apr-1 \
		--with-installbuilddir=/usr/share/apr-1/build \
		--enable-nonportable-atomics \
		--with-devrandom=/dev/urandom
	make || return 1
	make DESTDIR=${pkgdir} install
}