# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=waynergy
pkgver=0.0.17
pkgrel=0
pkgdesc="A synergy client for Wayland compositors"
url="https://github.com/r-c-f/waynergy"
arch="all"
license="MIT"
depends="wl-clipboard"
makedepends="
	libretls-dev
	libxkbcommon-dev
	meson
	wayland-dev
	"
source="https://github.com/r-c-f/waynergy/archive/v$pkgver/waynergy-$pkgver.tar.gz"
options="!check"  # no tests defined

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

check() {
	meson test --print-errorlogs -C output
}

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

sha512sums="
1e33465b2db6b2fa82e2646f57f5a06fe7294e885b1693dfcd6f81c2f8b955b2093ece203d506ab163c2fd4d8e806c546f54259ec41e41a7474a11abef707262  waynergy-0.0.17.tar.gz
"
