# Maintainer: Michał Polański <michal@polanski.me>
pkgname=slurp
pkgver=1.5.0
pkgrel=0
pkgdesc="Interaction screen selection on Wayland compositors"
url="https://wayland.emersion.fr/slurp/"
license="MIT"
arch="all"
makedepends="
	cairo-dev
	libxkbcommon-dev
	meson
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/emersion/slurp/archive/v$pkgver/slurp-$pkgver.tar.gz"

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

check() {
	./output/slurp -h >/dev/null
}

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

sha512sums="
77c4efdaa4ac411f43c598e5d654bcf61f969a5e403df6110757a7b217e02d55d0ba797729e42f8219d3bba79f58bcb36746799de765d3b25f301bf9ac3c1888  slurp-1.5.0.tar.gz
"
