# Template file for 'rasqal'
pkgname=rasqal
version=0.9.30
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-release"
hostmakedepends="pkg-config"
makedepends="mpfr-devel raptor-devel>=2.0.9_3"
short_desc="RDF Query Library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://librdf.org/rasqal"
distfiles="http://librdf.org/dist/source/rasqal-${version}.tar.gz"
checksum=abf0e93d80cc79bdf383fd3e904255bf98bc729356d6cf2f673bce74b08b1cfd
long_desc="
 Rasqal is a free software / Open Source C library that handles Resource
 Description Framework (RDF) query language syntaxes, query construction and
 execution of queries returning results as bindings, boolean, RDF graphs/triples
 or syntaxes. The supported query languages are SPARQL Query 1.0, SPARQL Query
 1.1, SPARQL Update 1.1 (no executing) and the Experimental SPARQL extensions
 (LAQRS). Rasqal can write binding query results in the SPARQL XML, SPARQL JSON,
 CSV, TSV, HTML, ASCII tables, RDF/XML and Turtle / N3 and read them in SPARQL
 XML, RDF/XML and Turtle / N3."

librasqal_package() {
	short_desc+=" - Runtime libraries"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

rasqal-devel_package() {
	depends="raptor-devel>=2.0.9_3 librasqal-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin/rasqal-config
		vmove usr/share/man/man1/rasqal-config.1
		vmove usr/include
		vmove usr/lib
		vmove usr/share/gtk-doc
		vmove usr/share/man/man3
	}
}