# Template file for 'gstreamer1' pkgname=gstreamer1 version=1.18.3 revision=1 wrksrc="gstreamer-${version}" build_style=meson build_helper="gir" configure_args="-Dptp-helper-permissions=capabilities -Dpackage-origin=https://www.voidlinux.org -Ddbghelp=disabled -Dintrospection=$(vopt_if gir enabled disabled)" hostmakedepends="gettext pkg-config flex python3 docbook-xsl glib-devel libcap-progs" makedepends="libxml2-devel libglib-devel gtk+3-devel libcap-devel libunwind-devel bash-completion" short_desc="Core GStreamer libraries and elements (1.x)" maintainer="Orphaned " license="LGPL-2.0-or-later" homepage="https://gstreamer.freedesktop.org" distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz" checksum=0c2e09e18f2df69a99b5cb3bd53c597b3cc2e35cf6c98043bb86a66f3d312100 pre_check() { # gst_gstdatetime is known to fail according to LFS vsed -i '/gstdatetime/d' tests/check/meson.build } do_check() { ninja -C build test || msg_warn "Fails on musl" } build_options="gir" build_options_default="gir" gstreamer1-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" vmove usr/share/aclocal if [ "$build_option_gir" ]; then vmove "usr/share/gir*" fi } }