void-packages/srcpkgs/ecm/template
Gonzalo Tornaría ed7b5dda10 ecm: update homepage and distfile url
It seems gforge.inria.fr is down (for good?).

This project has moved to gitlab.inria.fr and the original tarball is
available there.
2021-10-03 23:13:38 -03:00

33 lines
963 B
Bash

# Template file for 'ecm'
pkgname=ecm
version=7.0.4
revision=3
build_style=gnu-configure
configure_args="--enable-shared --enable-openmp"
hostmakedepends="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/uploads/00c4c691a1ef8605b65bdf794a71539d/ecm-${version}.tar.gz"
checksum=0cf7b3eee8462cc6f98b418b47630e1eb6b3f4f8c3fc1fb005b08e2a1811ba43
# 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
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
}
}