# Template file for 'eclib'
pkgname=eclib
version=20250627
revision=5
build_style=gnu-configure
configure_args="--with-flint --with-boost --with-boost-system=c"
makedepends="pari-devel ntl-devel flintlib-devel boost-devel-minimal
 libboost_thread"
short_desc="Elliptic curve library, includes mwrank"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://github.com/JohnCremona/eclib"
changelog="https://github.com/JohnCremona/eclib/releases"
distfiles="https://github.com/JohnCremona/eclib/releases/download/${version}/eclib-${version}.tar.bz2"
checksum=b88d4b52612e491c5415946d9e35f2062ca1015ee7fbbe0b61f158fa74cb4bc9

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