# Contributor: Leo # Maintainer: Natanael Copa pkgname=libosinfo pkgver=1.6.0 pkgrel=0 pkgdesc="A library for managing OS information for virtualization" url="https://libosinfo.org/" arch="all" license="LGPL-2.0-or-later" depends="hwdata osinfo-db" makedepends="glib-dev libsoup-dev libxml2-dev libxslt-dev vala intltool gobject-introspection-dev check-dev perl-dev automake autoconf libtool xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz" # secfixes: # 1.5.0-r1: # - CVE-2019-13313 prepare() { default_prepare autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-introspection=yes \ --enable-vala=yes \ --with-usb-ids-path=/usr/share/hwdata/usb.ids \ --with-pci-ids-path=/usr/share/hwdata/pci.ids make } check() { make check } package() { make DESTDIR="$pkgdir" install } sha512sums="53359095e40ef12e0cc142ddc92119b4a753bb47a728f13a8ff500a19108a44eb1f6ebe4ed67b04347a707dd0c0d55bcfe6815b57d187237dddd7376ebe9cf5e libosinfo-1.6.0.tar.gz"