# Maintainer Simone Cimarelli a.k.a. AquilaIrreale # Contributor Jérémie Detrey # Contributor Christian Cornelssen _pkg=cado-nfs pkgname=${_pkg}-git pkgver=20210806.c5b20eac1 pkgrel=1 pkgdesc="Implementation of the Number Field Sieve (NFS) algorithm for factoring integers" arch=('i686' 'pentium4' 'x86_64') url="http://cado-nfs.gforge.inria.fr/" license=('LGPL2') # We configure with optional curl, hwloc, gmp-ecm. # Configuring with hwloc makes binaries in linalg/bwc depend on it. depends=('gmp' 'python' 'sqlite' 'hwloc') makedepends=('git' 'cmake' 'inetutils' 'curl' 'gmp-ecm') optdepends=('curl: for cado-nfs-client.py' 'gmp-ecm: for JL DLP polynomial selection' 'perl: for bwc.pl') conflicts=('cado-nfs') provides=('cado-nfs') source=("git+https://gitlab.inria.fr/cado-nfs/${_pkg}.git") md5sums=('SKIP') pkgver() { cd "$_pkg" git log -1 --format="%cd.%h" --date=short | sed 's/-//g' } build() { cd "$_pkg" cat <local.sh PREFIX=/usr HWLOC=$PREFIX GMPECM=$PREFIX CURL=$PREFIX # Remove 32-bit barriers to big factorizations FLAGS_SIZE="-DSIZEOF_P_R_VALUES=8 -DSIZEOF_INDEX=8" EOF make CFLAGS="$CFLAGS -march=x86-64-v4" CPPFLAGS="$CPPFLAGS -march=x86-64-v4" } package() { cd "$_pkg" make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: