# Contributor:
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=grim
pkgver=1.4.1
pkgrel=0
pkgdesc="Grabs images from Wayland compositors"
url="https://wayland.emersion.fr/grim/"
license="MIT"
arch="all"
makedepends="
	libjpeg-turbo-dev
	libpng-dev
	meson
	pixman-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/grim/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no test suite

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

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

sha512sums="
e6f5e540a4e70467971b932c4a36bda88742de360925cf1bb1908823f76ac295c8ef5ec953fcdeb083c39b13a8cd24a01d4739ae4cc37e106b60956266eeef22  grim-1.4.1.tar.gz
"
