User Tools

Site Tools


buildroot:libvirt-glib

libvirt-glib

Wrapper around libvirt API to provide a high-level object-oriented API better suited for dbus-based applications

runtime dependencies libvirt (System tools)
libcap (Libraries/Other)
make dependencies gobject-introspection
intltool
meson
python
vala

Recette

mkdir /data/buildroot/package/libvirt-dbus
cat > /data/buildroot/package/libvirt-dbus/Config.in<< 'EOF'
config BR2_PACKAGE_LIBVIRT_GLIB
        bool "libvirt-glib"
        depends on BR2_PACKAGE_LIBCAP
        depends on BR2_PACKAGE_LIBVIRT
        help
         Wrapper around libvirt API to provide a high-level object-oriented API better suited for dbus-based applications
EOF

cat > /data/buildroot/package/libvirt-glib/libvirt-glib.mk<< 'EOF'
#############################################################
#
# libvirt-glib
# https://libvirt.org/sources/glib/libvirt-glib-4.0.0.tar.xz"
# sha512sums='e1b99e80aa671fa5a4d7f7f7a4ea70ce7c5fdaf97574407f79aa11a75dd177e1e3f92027728a83ded62e305852bbda76eb90326aaa1f5f19b77272b008351810'
#############################################################
LIBVIRT_GLIB_VERSION = 4.0.0
LIBVIRT_GLIB_SOURCE  = libvirt-glib-$(LIBVIRT_GLIB_VERSION).tar.xz
LIBVIRT_GLIB_SITE   = https://libvirt.org/sources/dbus

LIBVIRT_GLIB_DEPENDENCIES =  libvirt libcap
LIBVIRT_GLIB_BIN_ARCH_EXCLUDE = /usr/lib

define LIBVIRT_GLIB_BUILD_CMDS
  cd $(@D)/ && \
  meson setup build --prefix=/usr --buildtype=plain && \
  ninja -C build
endef

define LIBVIRT_GLIB_INSTALL_TARGET_CMDS
  cd $(@D)/ && \
  DESTDIR="${TARGET_DIR}" meson install 
endef

$(eval $(generic-package))
EOF

sed -i '/menu "Custom packages"/a source "package/libvirt-glib/Config.in"' /data/buildroot/package/Config.in
buildroot/libvirt-glib.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1