APP=libvncserver
VERSION=0.9.11
BUILD=1sml
HOMEPAGE='https://libvnc.github.io/'
DOWNLOAD='https://github.com/LibVNC/libvncserver/archive/refs/tags/LibVNCServer-0.9.11.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
"
