void-packages/srcpkgs/orc/template

40 lines
1004 B
Bash

# Template file for 'orc'
pkgname=orc
version=0.4.32
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dexamples=disabled -Dtests=disabled -Dgtk_doc=$(vopt_if gtk_doc enabled disabled)"
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"
distfiles="http://gstreamer.freedesktop.org/src/orc/orc-${version}.tar.xz"
checksum=a66e3d8f2b7e65178d786a01ef61f2a0a0b4d0b8370de7ce134ba73da4af18f0
build_options="gtk_doc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
post_install() {
vlicense COPYING
}
orc-devel_package() {
depends="orc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/aclocal
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}