void-packages/srcpkgs/libvirt-glib/template
2019-08-19 10:27:57 +02:00

36 lines
1.1 KiB
Bash

# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=2.0.0
revision=3
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="Enno Boland <gottox@voidlinux.org>"
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"
build_options_default="gir vala"
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
}
}