# Template file for 'sushi'
pkgname=sushi
version=45.0
revision=1
build_helper="gir"
build_style=meson
hostmakedepends="glib-devel gettext pkg-config
 $(vopt_if gir 'gobject-introspection') gjs gstreamer1"
makedepends="clutter-gst3-devel clutter-gtk-devel evince-devel gjs-devel
 gtksourceview4-devel libsoup3-devel libwebkit2gtk41-devel"
depends="evince nautilus"
short_desc="Quick image previewer over DBus for Nautilus"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/sushi"
changelog="https://gitlab.gnome.org/GNOME/sushi/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/sushi/${version%.*}/sushi-${version}.tar.xz"
checksum=6a5f14b05a3471fe43853cc2b0e1ae5484d7f9f86f7ea376179829b9bf4ac1dd
lib32disabled=yes

build_options="gir"
build_options_default="gir"

pre_build() {
	if [ "$CROSS_BUILD" ]; then
		export GST_PLUGIN_SCANNER="/usr/bin/false"
	fi
}
