app=gtk-vnc
version=1.0.0
build=1sml
homepage="https://wiki.gnome.org/Projects/gtk-vnc"
download="https://download.gnome.org/sources/gtk-vnc/1.0/gtk-vnc-1.0.0.tar.xz"
desc="VNC viewer widget for GTK"
requires="gtk3 gnutls libgcrypt"

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

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

  meson \
    --prefix="/" \
    --buildtype=plain \
    -Dwith-vala=true \
    -Dwith-coroutine=gthread \
    build

  DESTDIR=$pkg ninja -C build all install

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
2bdedf3cbc32a9a5a90298060ebb00079da57eaac392d663159ac6de57324ac40b9a6391aaaea4aa6adc83b20c173e0f5a6069c71bc2e0d9afe8ff289feedce4  gtk-vnc-1.0.0.tar.lz
"
