void-packages/srcpkgs/ecm/template

39 lines
1006 B
Bash

# Template file for 'ecm'
pkgname=ecm
version=7.0.6
revision=1
build_style=gnu-configure
configure_args="--enable-shared --enable-openmp"
hostmakedepends="automake libtool m4"
makedepends="gmp-devel libgomp-devel"
short_desc="Elliptic Curve Method for Integer Factorization"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.inria.fr/zimmerma/ecm"
distfiles="https://gitlab.inria.fr/zimmerma/ecm/-/archive/git-${version}/ecm-git-${version}.tar.gz"
checksum=d7f7cbfe414ae019fa0cd610685b9ad4d04d333ee3d826a05e6e5affd95ca91a
# ppc64 asm only provided for BE and ELFv1, we're ELFv2 for BE and LE
case "$XBPS_TARGET_MACHINE" in
ppc64*) configure_args+=" --disable-asm-redc";;
esac
pre_configure() {
autoreconf -fi
}
post_install() {
vbin aprcl
vbin .libs/ecmfactor
}
ecm-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}