app=libvncserver
version=0.9.11
build=1sml
homepage="https://libvnc.github.io/"
download="https://github.com/LibVNC/libvncserver/archive/refs/tags/LibVNCServer-$version.tar.gz"
desc="VNC server library for easy implementation of the VNC server"
requires="zlib gmp libgcrypt libpng nettle gnutls libidn libtasn1 libjpeg-turbo"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --without-ssl \
    $hostdist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
866e312874050629616919e2b8387368979c3773357ffa78f3b68574a7ee11a5b171f17503fc47a52ebc3de277bd443bbe714d476205229def61a46780bc6de3  libvncserver-0.9.11.tar.lz
"
