# $Id: PKGBUILD 137019 2015-07-16 19:23:29Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Fazlul Shahriar <fshahriar@gmail.com>
# Contributor: Denis Zawada <deno@bajtogrod.pl>

pkgname=igraph
pkgver=0.7.1
pkgrel=1
pkgdesc="A library for creating and manipulating (un)directed graphs."
arch=(i686 x86_64)
url="http://igraph.org/c/"
license=(GPL2)
depends=(glpk arpack)
source=("http://igraph.org/nightly/get/c/${pkgname}-${pkgver}.tar.gz")
md5sums=('4f6e7c16b45fce8ed423516a9786e4e8')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --with-external-blas --with-external-lapack --with-external-arpack --with-external-glpk --disable-tls
  make
}

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

