summaryrefslogtreecommitdiff
path: root/repo/libosinfo
diff options
context:
space:
mode:
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
+}
+