39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'libvirt-glib'
|
|
pkgname=libvirt-glib
|
|
version=5.0.0
|
|
revision=1
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="$(vopt_feature gir introspection) $(vopt_feature vala vapi)
|
|
$(vopt_feature doc docs)"
|
|
hostmakedepends="pkg-config gettext glib-devel
|
|
$(vopt_if vala vala) $(vopt_if doc gtk-doc)"
|
|
makedepends="libglib-devel libvirt-devel libxml2-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/libvirt-glib-${version}.tar.xz"
|
|
checksum=9bfec346382416a3575d87299bc641b2a464aa519fd9b1287e318aa43a2f3b8b
|
|
replaces="libvirt-glib-python>=0"
|
|
|
|
build_options="doc 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"
|
|
if [ "$build_option_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|