# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wayqt
pkgver=0.2.0
pkgrel=0
pkgdesc="Qt-based wrapper for various wayland protocols"
url="https://gitlab.com/desktop-frameworks/wayqt"
# armhf: blocked by wayqt
arch="all !armhf"
license="MIT"
makedepends="
	meson
	qt5-qtbase-dev
	qt5-qtwayland-dev
	wayland-protocols
	wlroots0.16-dev
"
subpackages="$pkgname-dev"
source="https://gitlab.com/desktop-frameworks/wayqt/-/archive/v$pkgver/wayqt-v$pkgver.tar.gz"
builddir="$srcdir/wayqt-v$pkgver"
options="!check" # no test suite

build() {
	abuild-meson \
		-Duse_qt_version=qt5 \
		output
	meson compile -C output
}

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

sha512sums="
885e8da87fa09957a3def467a499d7b6db4202a5102695ee54cd03ecefc74aaba342a1801b7b6b7c30074bd6e089f1148098069182489c88bc0cc025d3708e31  wayqt-v0.2.0.tar.gz
"
