void-packages/srcpkgs/gstreamer1/template

49 lines
1.4 KiB
Bash

# Template file for 'gstreamer1'
pkgname=gstreamer1
version=1.16.2
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)
-Dgtk_doc=$(vopt_if gtk_doc enabled disabled)"
hostmakedepends="gettext pkg-config flex python docbook-xsl glib-devel
libcap-progs $(vopt_if gtk_doc gtk-doc)"
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 <orphan@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://gstreamer.freedesktop.org"
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
checksum=e3f044246783fd685439647373fa13ba14f7ab0b346eadd06437092f8419e94e
# Package build options
build_options="gir gtk_doc"
build_options_default="gir"
desc_option_gtk_doc="Build GTK Documentation with gtk-doc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
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"
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
vmove usr/share/aclocal
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}