summaryrefslogtreecommitdiff
path: root/community/libosinfo/APKBUILD
blob: 287f97b8a25c408b2bfb2ac491df7113e6a430d8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.1.0
pkgrel=0
pkgdesc="A library for managing OS information for virtualization"
url="http://libosinfo.org/"
arch="all"
license="LGPLv2+"
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 \
		|| return 1
	make || return 1
}

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

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