summaryrefslogtreecommitdiff
path: root/repo/libosinfo/libosinfo.xibuild
blob: ba420eeb3b443e337df21f868940725f0ef4b7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}