void-packages/srcpkgs/libvirt-glib/template

37 lines
1.1 KiB
Bash

# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=3.0.0
revision=1
build_helper="gir"
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)
$(vopt_enable vala)"
hostmakedepends="automake 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=7fff8ca9a2b723dbfd04223b1c7624251c8bf79eb57ec27362a7301b2dd9ebfe
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
}
}