# Template file for 'brial'
pkgname=brial
version=1.2.15
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="boost-devel-minimal libboost_unit_test_framework
 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=1d0e7de01b1b60ad892dee6c02503f5932e2ed211f3f8dbdf1a3216c696ef201

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} m4ri-devel boost-devel-minimal"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
