# Template file for 'grim'
pkgname=grim
version=1.5.0
revision=1
build_style=meson
configure_args="-Djpeg=enabled -Dwerror=false"
hostmakedepends="pkg-config wayland-devel scdoc"
makedepends="wayland-devel wayland-protocols pixman-devel libjpeg-turbo-devel
 libpng-devel"
short_desc="Grab images from a Wayland compositor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/emersion/grim"
distfiles="${homepage}/-/archive/v${version}/grim-v${version}.tar.gz"
checksum=9e72a98f7621b1f5741b405b8dbd447acf7d300ddb12667ec526db1ce6154eaa

post_install() {
	vlicense LICENSE
	vcompletion contrib/completions/bash/grim.bash bash
	vcompletion contrib/completions/fish/grim.fish fish
}
