# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=phoc
pkgver=0.1.1
pkgrel=0
pkgdesc="wlroots based Phone compositor for the Phosh shell"
arch="all !armhf"
url="https://source.puri.sm/Librem5/phoc"
license="GPL-3.0-only"
makedepends="meson ninja gobject-introspection-dev libinput-dev wayland-dev wayland-protocols libxkbcommon-dev wlroots-dev"
source="$pkgname-$pkgver.tar.gz::https://source.puri.sm/Librem5/phoc/-/archive/v$pkgver/phoc-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	meson . _build --prefix=/usr
	ninja -C _build
}

check() {
	ninja -C _build test
}

package() {
	DESTDIR="$pkgdir/" ninja -C _build install
}
sha512sums="455a45cf3f6e7a6fab4dbb2b023c7f336e00553cf2143fe9c4ed7d7bf93aea08159ce2ae8b43bfa0aaa37e79fb954f896649be6548587e7bcfc85a6b54e9d052  phoc-0.1.1.tar.gz"
