# $Id: PKGBUILD 136704 2015-07-11 17:45:01Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>

pkgname=pynac
pkgver=0.3.9.2
pkgrel=1
pkgdesc="Python version of GiNaC, a C++ library for symbolic mathematical calculations"
arch=(i686 x86_64)
url="http://pynac.org"
license=(GPL)
depends=(python2)
source=("https://github.com/pynac/pynac/archive/$pkgname-$pkgver.tar.gz")
md5sums=('da01895f602a65ca362681d46c1ac0f9')

build() {
  cd pynac-pynac-$pkgver

  export PYTHON_VERSION=2
  ./bootstrap
  ./configure --prefix=/usr
  make
}

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