# Template file for 'brial'
pkgname=brial
version=1.2.12
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="boost-devel m4ri-devel"
short_desc="BRiAl (Boolean Ring Algebra) is the successor to PolyBoRi"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://github.com/BRiAl/BRiAl"
changelog="https://github.com/BRiAl/BRiAl/releases"
distfiles="https://github.com/BRiAl/BRiAl/releases/download/$version/brial-$version.tar.bz2"
checksum=ca009e3722dd3f0a60d15501caed1413146c80abced57423e32ae0116f407494

if [ -n "$CROSS_BUILD" ]; then
	configure_args+=" --with-boost-unit-test-framework=no"
fi

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