# Description: Event notification library. # URL: http://www.monkey.org/~provos/libevent/ # Maintainer: Danny Rawlins, monster dot romster at gmail dot com # Packager: Robert McMeekin, rrm3 at rrm3 dot org name=libevent version=1.4.11 release=1 source=(http://www.monkey.org/~provos/$name-$version-stable.tar.gz) build() { cd $name-$version-stable ./configure \ --prefix=/usr \ --mandir=/usr/man \ --disable-static make make DESTDIR=$PKG install chmod a-x $PKG/usr/lib/*.so # no .py extensions in /usr/bin its declared on the first line of # the file if [ -f $PKG/usr/bin/event_rpcgen.py ]; then mv $PKG/usr/bin/event_rpcgen.py $PKG/usr/bin/event_rpcgen sed -i $PKG/usr/bin/event_rpcgen -e '/_NAME = /s/"event_rpcgen.py"/"event_rpcgen"/' fi }