APP=libevent
VERSION=2.1.11
BUILD=1sml
HOMEPAGE='http://libevent.org'
DOWNLOAD='https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz'
DESC="event loop library"
REQUIRES="openssl"

build() {
  mkandenterbuilddir
  rm -rf "$APP-$VERSION-stable"

  tar xf $SRCDIR/$APP-$VERSION-stable.tar.?z
  cd "$APP-$VERSION-stable"
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
06e407677ba296ad98ad45f40a8f43504c8d2088696c86fe50d7769d32c0351cb2358b0cf9bbe78a5e84503d4d32e3d24948236c45e0cc3f6752123fbc96bc9b  libevent-2.1.11-stable.tar.lz
"
