APP=haveged
VERSION=1.9.2
BUILD=1sml
HOMEPAGE='https://github.com/jirka-h/haveged'
DOWNLOAD='http://www.issihosts.com/haveged/haveged-1.9.2.tar.gz'
DESC="entropy daemon especially suited for low-powered devices"
REQUIRES="musl"

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

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

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

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
e8f934fe8acc5229338e684de32a32d1011fd7dbd64d1fd9b1f4a7b8bf1045a628fca5a2fea871ab367726c7fba834ae500c37ad7ae49742fac7e3c2c546ec5a  haveged-1.9.2.tar.lz
"
