void-packages/srcpkgs/gst-plugins-base1/template

42 lines
1.5 KiB
Bash

# Template file for 'gst-plugins-base1'
pkgname=gst-plugins-base1
version=1.16.0
revision=1
wrksrc="${pkgname/1/}-${version}"
build_style=meson
build_helper="gir"
configure_args="-Dtremor=disabled -Dexamples=disabled -Dgtk_doc=disabled
-Dcdparanoia=$(vopt_if cdparanoia enabled disabled)
-Dintrospection=$(vopt_if gir enabled disabled)
-Dsndio=$(vopt_if sndio enabled disabled)"
hostmakedepends="gettext-devel pkg-config glib-devel orc"
makedepends="gstreamer1-devel glib-devel libxml2-devel pango-devel
cairo-devel liboil-devel alsa-lib-devel libXv-devel libXext-devel
libvisual-devel libgudev-devel libtheora-devel libvorbis-devel
libSM-devel orc-devel $(vopt_if cdparanoia libcdparanoia-devel)
opus-devel MesaLib-devel $(vopt_if sndio sndio-devel) graphene-devel"
depends="orc>=0.4.18 gstreamer1>=${version}"
short_desc="GStreamer Base Plug-ins (v1.x)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://gstreamer.freedesktop.org"
distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
checksum=4093aa7b51e28fb24dfd603893fead8d1b7782f088b05ed0f22a21ef176fb5ae
# Package build options
build_options="cdparanoia gir sndio"
build_options_default="cdparanoia gir sndio"
gst-plugins-base1-devel_package() {
depends="gstreamer1-devel>=${version} ${sourcepkg}>=${version}_${revision} orc-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}