aboutsummaryrefslogtreecommitdiffstats
path: root/community/osinfo-db-tools/APKBUILD
blob: 5720d124b51f3a1e981dfea9f35e0947ca2d54c9 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osinfo-db-tools
pkgver=1.5.0
pkgrel=0
pkgdesc="Tools for managing the osinfo database"
url="https://libosinfo.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="intltool glib-dev libxml2-dev libarchive-dev libxslt-dev json-glib-dev
	automake autoconf libtool"
checkdepends="py3-pytest py3-requests"
subpackages="$pkgname-doc $pkgname-lang"
source="https://releases.pagure.org/libosinfo/osinfo-db-tools-$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	# One of the tests run a user instance of osinfo-db-tools which
	# installs configuration to the value of $XDG_CONFIG_HOME, defaulting
	# to $HOME/.config as per the XDG standard. But the value might be changed
	# by the user and the test only checks for $HOME/.config. So unset it here
	# so it doesn't have a chance to fail.
	unset XDG_CONFIG_HOME
	make check
}

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

sha512sums="baa42086ae13365e463064f0313228ec79d785a863b72c396d2a24d35496420d17ea09191629663c8c67ec46f3168f256ff50896053244cd0255be6ac08583d1  osinfo-db-tools-1.5.0.tar.gz"