# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wayqt
pkgver=0.3.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
	wlroots-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="
0273a74d804e126d67b1db3ed57522a89be8246a66c3c2be7aae6cddc00e7bf350eea01a5139dbe9692847e2656ef37679d22c1966ea61740df79f3f30da5aaa  wayqt-v0.3.0.tar.gz
"
