# Template file for 'liborcus'
pkgname=liborcus
version=0.11.1
revision=1
_gitrev=00037fa23178c3876b31272cc2becacbf6b0dc07
wrksrc="orcus-${version}-${_gitrev}"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config python3.4"
makedepends="boost-devel mdds libixion-devel python3.4-devel zlib-devel"
short_desc="Library for processing spreadsheet documents"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="MPL-2.0"
homepage="https://gitlab.com/orcus/orcus"
distfiles="https://gitlab.com/orcus/orcus/repository/archive.tar.bz2?ref=${version}>${pkgname}-${version}.tar.bz2"
checksum=095779f008398f6da42dd5899fb6b7abde0a54b3d5b18825875739f477ef8890

pre_configure() {
	autoreconf -if
}

liborcus-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/*.a
		vmove usr/lib/python3.4/site-packages/*.a
		vmove usr/lib/pkgconfig
	}
}
