aboutsummaryrefslogtreecommitdiffstats
path: root/community/libosinfo/APKBUILD
blob: 655839646e973a45df0621b34279bbb626df8bb9 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.1.0
pkgrel=1
pkgdesc="A library for managing OS information for virtualization"
url="http://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"
subpackages="$pkgname-dev $pkgname-doc"
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./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() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c4f9e67bb5538e31e7d2ed3d764547ba0a2263da5bbf4d1ef930a32d5953fab59abc672e5f86a1f7f5ac1ebd0c5195986193f699a6b0efbcb6769917c0ed7102  libosinfo-1.1.0.tar.gz"