# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=wl-mirror
pkgver=0.16.5
pkgrel=0
pkgdesc="A simple Wayland output mirror client"
url="https://github.com/Ferdi265/wl-mirror"
license="GPL-3.0-or-later"
arch="all"
makedepends="
	cmake
	mesa-dev
	samurai
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/Ferdi265/wl-mirror/releases/download/v$pkgver/wl-mirror-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_DOCUMENTATION=ON \
		-DINSTALL_EXAMPLE_SCRIPTS=OFF \
		-DWLR_PROTOCOL_DIR="$builddir/proto/wlr-protocols"
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
f4260ac0798a25709676be8e6158b0cd06a4043f12fbe712ed53513b6791f402c38bc64d200e285edce04e18cf00f00ad36037ad5ea3af48243b7084dd73def5  wl-mirror-0.16.5.tar.gz
"
