void-packages/srcpkgs/libvirt-glib/template
2019-03-12 14:27:52 -03:00

40 lines
1.2 KiB
Bash

# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=2.0.0
revision=2
build_helper="gir"
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)
$(vopt_enable vala)"
hostmakedepends="pkg-config intltool glib-devel gettext-devel gtk-doc
python-devel $(vopt_if vala vala)"
makedepends="libglib-devel libvirt-devel libxml2-devel python-devel"
short_desc="Glib integration with libvirt"
maintainer="Rasmus Thomsen <oss@cogitri.dev>"
license="LGPL-2.1-or-later"
homepage="https://libvirt.org"
distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.gz"
checksum=94e8c410c67501303d3b32ca8ce2c36edf898511ec4de9b7f29cd35d274b3d6a
replaces="libvirt-glib-python>=0"
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
libvirt-glib-devel_package() {
depends="libglib-devel libxml2-devel libvirt-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}