# Maintainer: 
pkgname=rarian
pkgver=0.8.1
pkgrel=8
pkgdesc="Documentation metadata library"
url="https://rarian.freedesktop.org/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+ AND LGPL-2.1+ AND Zlib"
depends="bash"
makedepends="libxslt-dev"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/$pkgname/0.8/$pkgname-$pkgver.tar.bz2
	user-segfault.patch"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-scrollkeeper-compat \
		--disable-static
	make
}

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

sha512sums="64f3e7fbe423e45a59453805fe6b4116e0ffad43c7e88fe362d76a326c70936c6b46c4a4dc57cf43e3535c16f2f07fa1b2affa0aaeae637ee3ede48850c1fc60  rarian-0.8.1.tar.bz2
d5aa41c69e1ba43850e58914526b2f93377a7f293729dc6fb39a9daa7321a70e9eb5c417ec8705618dfd69628efc86776e425eed55ceae4a003a8cd074592166  user-segfault.patch"