# $Id: PKGBUILD 159369 2012-05-22 19:07:09Z tomegun $ # Maintainer: Tom Gundersen <teg@jklm.no> # Contributor: Judd <jvinet@zeroflux.org> pkgname=libevent pkgver=2.0.19 pkgrel=1 pkgdesc="An event notification library" arch=('i686' 'x86_64') url="http://www.monkey.org/~provos/libevent/" license=('BSD') depends=('openssl') optdepends=('python2: to use event_rpcgen.py') options=('!libtool') source=(https://github.com/downloads/${pkgname}/${pkgname}/${pkgname}-$pkgver-stable.tar.gz{,.asc}) build() { cd "${srcdir}/${pkgname}-${pkgver}-stable" sed -i 's#python#python2#' event_rpcgen.py ./configure --prefix=/usr --sysconfdir=/etc make } check() { cd "${srcdir}/${pkgname}-${pkgver}-stable" make check || true # this never worked, should be taken upstream } package() { cd "${srcdir}/${pkgname}-${pkgver}-stable" make DESTDIR="${pkgdir}" install } md5sums=('91111579769f46055b0a438f5cc59572' 'a211997b20913954f744a665f31f77d2')