49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'gstreamer1'
|
|
pkgname=gstreamer1
|
|
version=1.16.1
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="https://gstreamer.freedesktop.org"
|
|
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
|
|
checksum=02211c3447c4daa55919c5c0f43a82a6fbb51740d57fc3af0639d46f1cf4377d
|
|
|
|
# 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
|
|
}
|
|
}
|