# Template file for 'm4rie'
pkgname=m4rie
version=20250128
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="m4ri-devel"
short_desc="Library for fast arithmetic with dense matrices over GF(2^e)"
maintainer="Eloi Torrents <eloitor@duck.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/malb/m4rie"
changelog="https://github.com/malb/m4rie/releases"
distfiles="https://github.com/malb/m4rie/releases/download/${version}/m4rie-${version}.tar.gz"
checksum=96f1adafd50e6a0b51dc3aa1cb56cb6c1361ae7c10d97dc35c3fa70822a55bd7

pre_check() {
	# the testsuite is very slow when run in parallel!
	unset makejobs
}

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