void-packages/srcpkgs/gstreamer1/template

49 lines
1.5 KiB
Bash

# Template file for 'gstreamer1'
pkgname=gstreamer1
version=1.16.0
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-devel 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="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://gstreamer.freedesktop.org"
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
checksum=0e8e2f7118be437cba879353970cf83c2acced825ecb9275ba05d9186ef07c00
# 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
}
}