# Template file for 'gst1-editing-services'
pkgname=gst1-editing-services
version=1.24.6
revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddoc=disabled $(vopt_feature gir introspection)"
hostmakedepends="flex perl pkg-config gobject-introspection"
makedepends="glib-devel gst-plugins-base1-devel gst-plugins-bad1-devel
 python3-devel"
short_desc="GStreamer 1.x Editing Services"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="LGPL-2.0-or-later"
homepage="https://gstreamer.freedesktop.org"
changelog="https://gstreamer.freedesktop.org/releases/${version%.*}/#${version}"
distfiles="https://gstreamer.freedesktop.org/src/gst-editing-services/gst-editing-services-${version}.tar.xz"
checksum=138fa25cab9d5bfee5fcc0a75e199a18baff60309ca662e2807fbd1cdee1a266

build_options="gir"

if [ -z "${CROSS_BUILD}" ]; then
	build_options_default="gir"
fi

do_check() {
	: # Tests fail in older versions as well
}

gst1-editing-services-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} gst-plugins-base1-devel
	 python3-devel"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		if [ "${build_option_gir}" ]; then
			vmove usr/share/gir-1.0
		fi
	}
}
