summaryrefslogtreecommitdiff
path: root/repo/libosinfo
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/libosinfo
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/libosinfo')
-rw-r--r--repo/libosinfo/libosinfo.xibuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/libosinfo/libosinfo.xibuild b/repo/libosinfo/libosinfo.xibuild
new file mode 100644
index 0000000..ba420ee
--- /dev/null
+++ b/repo/libosinfo/libosinfo.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="libosinfo"
+DESC="library for managing OS information for virtualization"
+
+MAKEDEPS=" meson glib libsoup libxml2 libxslt gobject-introspection vala perl"
+
+PKG_VER=1.10.0
+SOURCE="https://gitlab.com/libosinfo/libosinfo/-/archive/v$PKG_VER/libosinfo-v$PKG_VER.tar.gz"
+
+build() {
+ meson --prefix=/usr \
+ -Denable-gtk-doc=false \
+ -Denable-introspection=enabled \
+ -Denable-tests=true \
+ -Denable-vala=enabled \
+ -Dwith-pci-ids-path=/usr/share/hwdata/pci.ids \
+ -Dwith-usb-ids-path=/usr/share/hwdata/usb.ids \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$PKG_DEST" meson install --no-rebuild -C output
+}
+