aboutsummaryrefslogtreecommitdiffstats
path: root/community/libosinfo/APKBUILD
blob: 22717caa6e59fdb77486fe4097092532d68d3002 (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
45
46
47
48
49
50
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.6.0
pkgrel=2
pkgdesc="A library for managing OS information for virtualization"
url="https://libosinfo.org/"
arch="all"
license="LGPL-2.0-or-later"
depends="hwids 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"