# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=eclib
pkgver=20190909
pkgrel=3
pkgdesc="Includes mwrank (for 2-descent on elliptic curves over Q) and modular symbol code used to create the elliptic curve database"
arch=(x86_64)
url="https://github.com/JohnCremona/eclib/"
license=(GPL)
depends=(flint pari boost-libs)
makedepends=(boost autoconf-archive)
source=($pkgname-$pkgver.tar.gz::"https://github.com/JohnCremona/eclib/archive/v$pkgver.tar.gz")
sha256sums=('695e45e14aa521a3eab15d6fcc58e2aa014d601acca9b573388b3660d57c1320')

build() {
  cd $pkgname-$pkgver
  ./autogen.sh
  ./configure --prefix=/usr --with-flint=/usr --with-boost
  make
}

package() {
  cd $pkgname-$pkgver
  make install DESTDIR="$pkgdir"
}

