void-packages/srcpkgs/orc/template

40 lines
1.0 KiB
Bash

# Template file for 'orc'
pkgname=orc
version=0.4.38
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dexamples=disabled -Dtests=disabled
$(vopt_feature gtk_doc gtk_doc)"
hostmakedepends="pkg-config $(vopt_if gtk_doc gtk-doc)"
short_desc="Oild Runtime Compiler"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://cgit.freedesktop.org/gstreamer/orc"
changelog="https://gitlab.freedesktop.org/gstreamer/orc/-/raw/main/RELEASE"
distfiles="http://gstreamer.freedesktop.org/src/orc/orc-${version}.tar.xz"
checksum=a55a98d4772567aa3faed8fb84d540c3db77eaba16d3e2e10b044fbc9228668d
build_options="gtk_doc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
post_install() {
vlicense COPYING
}
orc-devel_package() {
depends="${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
}
}