void-packages/srcpkgs/libvirt-glib/template
Helmut Pozimski f08f544462 libvirt-glib: update to 1.0.0
also removes the libvirt-glib-python package,
it has been removed by upstream.
2017-03-11 19:29:49 +01:00

40 lines
1.1 KiB
Bash

# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=1.0.0
revision=1
build_options="gir"
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="libvirt glib integration"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://libvirt.org"
license="LGPL-2.1"
distfiles="http://libvirt.org/sources/glib/$pkgname-$version.tar.gz"
checksum=ca9158d01cc4d9e0218f94f8c9ee04ae367d8c3b4396daaebca2c4b89a2e8a47
replaces="libvirt-glib-python>=0"
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
}
}