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

pkgname=fflas-ffpack
pkgver=2.4.3
pkgrel=3
pkgdesc="A library for dense linear algebra over word-size finite fields"
arch=(x86_64) # pkgconfig file is arch-specific
url="https://linbox-team.github.io/fflas-ffpack/"
license=(LGPL)
depends=(givaro cblas lapack)
source=("https://github.com/linbox-team/fflas-ffpack/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('f372783a17a9899ee9f88d4c9421d80facccb95556146dad7020d07a03791cc9')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --enable-precompilation --with-blas-libs="-lblas -lcblas -llapack" \
    --disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42 --disable-avx --disable-avx2 --disable-fma
  make
}

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