# Template file for 'givaro'
pkgname=givaro
version=4.2.2
revision=1
build_style=gnu-configure
makedepends="gmpxx-devel"
short_desc="C++ library for arithmetic and algebraic computations"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="CECILL-B"
homepage="https://github.com/linbox-team/givaro"
changelog="https://github.com/linbox-team/givaro/releases"
distfiles="https://github.com/linbox-team/givaro/releases/download/v${version}/givaro-${version}.tar.gz"
checksum=53e9fb290deb0e20799c62d250d65c2226013d60b4cebe6b0b54c73000cb8fff
nocross=yes

build_options="native_build"

if [ -z "$build_option_native_build" ]; then
	configure_args="--without-archnative"
fi

post_install() {
	vlicense "Licence_CeCILL-B_V1-en.txt"
}

givaro-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/bin
	}
}
