aboutsummaryrefslogtreecommitdiffstats
path: root/community/osinfo-db-tools/APKBUILD
blob: ba18745f75fd78499218388444422f0354a2f35f (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osinfo-db-tools
pkgver=1.7.0
pkgrel=1
pkgdesc="Tools for managing the osinfo database"
url="https://libosinfo.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	meson
	glib-dev
	libxml2-dev
	libarchive-dev
	libxslt-dev
	json-glib-dev
	libsoup-dev
	perl
	"
checkdepends="py3-pytest py3-requests"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.com/libosinfo/osinfo-db-tools/-/archive/v$pkgver/osinfo-db-tools-v$pkgver.tar.gz"
builddir="$srcdir/osinfo-db-tools-v$pkgver"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="021f3ffc5a43c8061bd50a0aad19fe1d004402e025c540ccebc39d1abd83aecacf5fd570402ebec60fefa17fcbe6255151000c06f93c861389713b569c919d14  osinfo-db-tools-v1.7.0.tar.gz"