# $Id: PKGBUILD 138857 2015-08-28 09:37:56Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=eclib
pkgver=20150826
pkgrel=1
pkgdesc="Includes mwrank (for 2-descent on elliptic curves over Q) and modular symbol code used to create the elliptic curve database"
arch=(i686 x86_64)
url="https://github.com/JohnCremona/eclib/"
license=(GPL)
depends=(flint pari-sage)
source=("https://github.com/JohnCremona/eclib/archive/$pkgname-$pkgver.tar.gz")
md5sums=('50e126500e976097b08d24729c719b2c')

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

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

