# Template file for 'grilo-plugins'
pkgname=grilo-plugins
version=0.3.12
revision=2
build_style=meson
hostmakedepends="pkg-config intltool itstool glib-devel gperf tracker3"
# XXX missing plugins: fakemetadata.
makedepends="grilo-devel gom-devel gupnp-av-devel json-glib-devel
 libquvi-devel rest-devel sqlite-devel libgcrypt-devel gmime-devel
 tracker3-devel totem-pl-parser-devel libgdata-devel libmediaart-devel
 gstreamer1-devel libdmapsharing-devel lua53-devel gnome-online-accounts-devel
 avahi-glib-libs-devel"
checkdepends="python3-gobject gst-plugins-bad1 dbus"
short_desc="Plugins for Grilo"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://live.gnome.org/Grilo"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=c6b6df086a164d65c206d70139ce80591f8feca3545612e45b823fb4fe4b2577

post_patch() {
	if [ "$CROSS_BUILD" ]; then
		# tests try to use tracker-sandbox from the wrong path:
		# "Program /usr/lib32/tracker-3.0/trackertestutils/tracker-sandbox found: NO"
		vsed -e "/subdir('tests')/d" -i meson.build
	fi
}

# feel free to fix
do_check() {
	:
}
