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

pkgname=rankwidth
pkgver=0.8
pkgrel=1
pkgdesc="A program that calculates rank-width and rank-decompositions"
arch=(x86_64)
url="https://sourceforge.net/projects/rankwidth/"
license=(GPL2)
depends=(igraph)
makedepends=()
source=("https://master.dl.sourceforge.net/project/rankwidth/rw-$pkgver.tar.gz")
sha256sums=('60fd5320bef28a5156284fc224534376405f2655c6777a12a05fcacc0576d700')

prepare() {
  cd rw-$pkgver
  autoreconf -fi
}

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

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