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

pkgname=antic
pkgver=0.2.4
pkgrel=2
pkgdesc='Algebraic Number Theory In C'
arch=(x86_64)
url='https://github.com/wbhart/antic'
license=(LGPL)
depends=(flint)
makedepends=()
source=(https://github.com/wbhart/antic/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('517d53633ff9c6348549dc6968567051b2161098d2bc395cb40ecc41e24312c6')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --with-flint=/usr --with-gmp=/usr --with-mpfr=/usr

  make
}

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

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