vp-build/srcpkgs/libvirt-glib/template

41 lines
1.2 KiB
Bash

# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=2.0.0
revision=1
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config intltool glib-devel
gettext-devel gtk-doc gobject-introspection vala-devel python-devel"
makedepends="libglib-devel libvirt-devel libxml2-devel python-devel"
short_desc="Glib integration with libvirt"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://libvirt.org"
license="LGPL-2.1-or-later"
distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.gz"
checksum=94e8c410c67501303d3b32ca8ce2c36edf898511ec4de9b7f29cd35d274b3d6a
replaces="libvirt-glib-python>=0"
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
autoreconf -fi
}
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
}
}