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

# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
#  - removed sse2 configure/cflags options

pkgname=gf2x
pkgver=1.1
pkgrel=2
pkgdesc="A library for multiplying polynomials over the binary field"
arch=(i686 x86_64)
url="http://gforge.inria.fr/projects/gf2x/"
license=(GPL LGPL)
depends=(glibc)
source=("http://gforge.inria.fr/frs/download.php/30873/gf2x-1.1.tar.gz")
md5sums=('d9ce3a0d8cb6be50e3a1ff6d90be669f')

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

check() {
  cd $pkgname-$pkgver
  make -k check
}

package() {
  cd $pkgname-$pkgver
  make prefix="$pkgdir"/usr install
}