void-packages/srcpkgs/orc/template

41 lines
991 B
Bash

# Template file for 'orc'
pkgname=orc
version=0.4.33
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"
distfiles="http://gstreamer.freedesktop.org/src/orc/orc-${version}.tar.xz"
checksum=844e6d7db8086f793f57618d3d4b68d29d99b16034e71430df3c21cfd3c3542a
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
}
}