community/libosinfo: modernize and add check

This commit is contained in:
Roberto Oliveira 2018-01-29 23:29:54 +00:00
parent ded35da9dd
commit 66a78f1b9d

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.1.0
pkgrel=0
pkgrel=1
pkgdesc="A library for managing OS information for virtualization"
url="http://libosinfo.org/"
arch="all"
@ -12,7 +12,7 @@ makedepends="glib-dev libsoup-dev libxml2-dev libxslt-dev vala intltool
subpackages="$pkgname-dev $pkgname-doc"
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
@ -27,14 +27,18 @@ build() {
--enable-introspection=yes \
--enable-vala=yes \
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
|| return 1
make || return 1
--with-pci-ids-path=/usr/share/hwdata/pci.ids
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
}
sha512sums="c4f9e67bb5538e31e7d2ed3d764547ba0a2263da5bbf4d1ef930a32d5953fab59abc672e5f86a1f7f5ac1ebd0c5195986193f699a6b0efbcb6769917c0ed7102 libosinfo-1.1.0.tar.gz"