summaryrefslogtreecommitdiff
path: root/community/libosinfo/APKBUILD
blob: edb543ed7c78c4118296e3a64e0fac3454ea1741 (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
51
52
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.10.0
pkgrel=3
pkgdesc="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
	gobject-introspection-dev
	libsoup3-dev
	libxml2-dev
	libxslt-dev
	meson
	perl
	vala
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://gitlab.com/libosinfo/libosinfo/-/archive/v$pkgver/libosinfo-v$pkgver.tar.gz"
builddir="$srcdir/libosinfo-v$pkgver"

# secfixes:
#   1.5.0-r1:
#     - CVE-2019-13313

build() {
	abuild-meson \
		-Db_lto=true \
		-Denable-gtk-doc=false \
		-Denable-introspection=enabled \
		-Denable-tests=true \
		-Denable-vala=enabled \
		-Dwith-pci-ids-path=/usr/share/hwdata/pci.ids \
		-Dwith-usb-ids-path=/usr/share/hwdata/usb.ids \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6b1071976de0aaf86c06524eda03aea9de0d95ba84bdbf35b97ce9e16e4aabde4385803b1706127b86e02ce6a48f7b1822810f37c1d9e9332eb951107d7e7871  libosinfo-v1.10.0.tar.gz
"