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

pkgname=fplll
pkgver=5.5.0
pkgrel=1
pkgdesc='Lattice algorithms using floating-point arithmetic'
arch=(x86_64)
url='https://github.com/fplll/fplll'
license=(LGPL)
depends=(gcc-libs
         glibc
         gmp
         mpfr
         qd)
makedepends=(git)
source=(git+https://github.com/fplll/fplll#tag=$pkgver)
sha256sums=('428ac29ea969eb9a04cb8bcb89afc8f8e31c1e75fe8b437cb62cef3bdd6f9417')

prepare() {
  cd $pkgname
  autoreconf -vi
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make
}

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