# Maintainer: Cormac Stephenson pkgname=ecm pkgver=7.0.5 pkgrel=1 pkgdesc="Elliptic Curve Method for Integer Factorization" url="https://gitlab.inria.fr/zimmerma/ecm" arch="all" license="GPL-3.0-or-later" subpackages=" $pkgname-doc $pkgname-dev libecm " depends_dev="$pkgname=$pkgver-r$pkgrel" makedepends="gmp-dev m4" source="https://gitlab.inria.fr/zimmerma/ecm/uploads/89f6f0d65d3e980cef33dc922004e4b2/ecm-$pkgver.tar.gz" build() { CFLAGS="$CFLAGS -O2" \ CXXFLAGS="$CXXFLAGS -O2" \ ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --enable-shared \ --disable-static make } check() { make check } libecm() { license="LGPL-3.0-or-later" amove usr/lib/libecm.so.* } libecmdev() { license="LGPL-3.0-or-later" default_dev } package() { make DESTDIR="$pkgdir" install } sha512sums=" f5a482a231339304683adc3334c9b86f21a0d9b42ea871418d4c01005057d560cd418eddfcc1c7be7f8c249960b2ee612a1454ccc5d8e41319b06c6f42e6662e ecm-7.0.5.tar.gz "