# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=labwc
pkgver=0.8.4
pkgrel=0
pkgdesc="Wayland stacking compositor"
url="https://github.com/labwc/labwc"
arch="all"
license="GPL-2.0-only"
depends="xwayland"
makedepends="
	cairo-dev
	glib-dev
	libinput-dev
	libsfdo-dev
	librsvg-dev
	libxml2-dev
	meson
	pango-dev
	scdoc
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/labwc/labwc/archive/$pkgver/labwc-$pkgver.tar.gz
	remove-aports-git-version.patch
	"

build() {
	abuild-meson . output -Dman-pages=enabled
	meson compile -C output
}

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

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

sha512sums="
20e45bd274e93cc68b6645ec4dc368fcdc25cc31d0d7d4f35f7f141faec842e09f39e2d511128927fd8d9a6f005faf975d59f7503c64d52ef86d3ce652702279  labwc-0.8.4.tar.gz
08b1c7f45eda434400b61b8cad1d0e800c8f4ecd9e3f93fc42b10f4e8e0e599ed61a7a7e363dfa0acb45b174269278c136a244ec87940e84cc2362cdda5f5ef6  remove-aports-git-version.patch
"
