# $Id: PKGBUILD 89697 2010-09-03 10:45:46Z remy $
# Maintainer: 
# Contributor: Judd <jvinet@zeroflux.org>

pkgname=libevent
pkgver=1.4.14b
pkgrel=2
pkgdesc="An event notification library"
license=('GPL2')
arch=('i686' 'x86_64')
url="http://www.monkey.org/~provos/libevent/"
depends=('glibc')
source=("http://www.monkey.org/~provos/libevent-$pkgver-stable.tar.gz")
options=('!libtool')
md5sums=('a00e037e4d3f9e4fe9893e8a2d27918c')

build() {
  cd $srcdir/$pkgname-$pkgver-stable
  sed -i 's#python#python2#' event_rpcgen.py
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
}

package() {
  cd $srcdir/$pkgname-$pkgver-stable
  make DESTDIR=$pkgdir install || return 1
}