description="A validating, recursive, and caching DNS resolver."
url="http://www.unbound.net"

contributors="Tnut,Greg"
packager="spiky <spiky@nutyx.org>"

makedepends=(openssl doxygen)

name=unbound
version=1.17.1

source=(${url}/downloads/$name-$version.tar.gz)

build()
{

  cd $name-$version

  ./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --disable-static  \
            --with-pidfile=/run/unbound.pid &&

  make

  make doc

  make DESTDIR=$PKG install
  mkdir -p $PKG/usr/bin
  mv -v $PKG/usr/sbin/unbound-host $PKG/usr/bin/

  install -v -m755 -d $PKG/usr/share/doc/$name-$version
  install -v -m644 doc/html/* $PKG/usr/share/doc/$name-$version
  
}
