From cee7a84cf44794a985139c272bd375453a8baaaa Mon Sep 17 00:00:00 2001 From: Grigory Kirillov Date: Sat, 22 Oct 2022 16:03:26 +0300 Subject: [PATCH] testing/eclib: new aport Tools for creating the elliptic curve databases https://github.com/JohnCremona/eclib Needed for #14155 --- testing/eclib/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/eclib/APKBUILD diff --git a/testing/eclib/APKBUILD b/testing/eclib/APKBUILD new file mode 100644 index 00000000000..ae3b51d5b05 --- /dev/null +++ b/testing/eclib/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Grigory Kirillov +# Maintainer: Grigory Kirillov +pkgname=eclib +pkgver=20221012 +pkgrel=0 +pkgdesc="Tools for creating the elliptic curve databases" +url="https://github.com/JohnCremona/eclib" +# armhf, armv7, x86: blocked by pari +# s390x: blocked by flint +arch="all !armhf !armv7 !s390x !x86" +license="GPL-2.0-or-later" +makedepends="boost-dev flint-dev libntl-dev pari-dev" +source="https://github.com/JohnCremona/eclib/releases/download/$pkgver/eclib-$pkgver.tar.bz2" +subpackages="$pkgname-static $pkgname-dev $pkgname-libs $pkgname-doc" + +build() { + export CXXFLAGS="${CXXFLAGS/-Os/-O3}" # gotta go fast + + ./configure \ + --target="$CTARGET" \ + --build="$CBUILD" \ + --host="$CHOST" \ + --prefix=/usr \ + --with-boost=yes \ + --enable-mpfp + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +9d04aefe9e35fbc1b18dd92b5ba872cf71f5ce1c94c9a0f1ff326c763bf144112d7d950ac80e2bd8d3780a303edeeac903754b4eb5fb241e87be7ef3f2738c19 eclib-20221012.tar.bz2 +"