# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wayvnc
pkgver=0.8.0
pkgrel=0
pkgdesc="A VNC server for wlroots-based Wayland compositors"
url="https://github.com/any1/wayvnc"
license="ISC"
arch="all"
makedepends="
	bsd-compat-headers
	jansson-dev
	libuv-dev
	libxkbcommon-dev
	meson
	neatvnc-dev
	scdoc
	wayland-dev
	"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://github.com/any1/wayvnc/archive/v$pkgver/wayvnc-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
88971d276cf6695a446fc746fa1eae1f4df2b5ba42cabf7b7c57481a89af95fe60fce5e1c92bc10e4c871bf561da0d9bb2117418e971a9b4bc6f46b9e53db74d  wayvnc-0.8.0.tar.gz
"
