# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osinfo-db-tools
pkgver=1.1.0
pkgrel=0
pkgdesc="Tools for managing the osinfo database"
url="http://libosinfo.org/"
arch="all"
license="GPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev intltool glib-dev libxml2-dev libarchive-dev
	libxslt-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="https://releases.pagure.org/libosinfo/osinfo-db-tools-$pkgver.tar.gz"
builddir="$srcdir/osinfo-db-tools-$pkgver"

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

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

sha512sums="52e08e67b75fb84c7d7721dd76f1bf09f71c27deffc4d8391234aec939863de4e96cbd8fc9783944b2493fef183518a21ff185ec5a5d9934adc6d3c67bf0f972  osinfo-db-tools-1.1.0.tar.gz"