app=x11vnc
version=0.9.16
build=1sml

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

homepage="https://github.com/LibVNC/x11vnc"
download="https://github.com/LibVNC/x11vnc/archive/refs/tags/0.9.16.tar.gz"
desc="VNC server for real X displays"
requires="expat nettle openssl libgcrypt libgpg-error libjpeg-turbo libvncserver libxdamage libxinerama libxrandr libxtst avahi"
sha512sums="
b375149ef368c7e48abf8d854e38d94c8775624457addef418d7337df0651ae2a4070ff5002dad8fcefee165426a43983482c63b5c4594e91da71bbd1087b6e8  x11vnc-0.9.16.tar.lz
"
