# Maintainer: Tiago de Paula Peixoto # Remove the --enable-openmp flag below if you do not want parallelization. pkgname=python2-graph-tool pkgver=2.29 pkgrel=1 pkgdesc='A Python module for manipulation and statistical analysis of graphs' arch=('i686' 'x86_64') url='https://graph-tool.skewed.de' license=(GPL3) depends=(boost-libs python2 expat python2-scipy python2-numpy cgal cairomm python2-cairo) makedepends=(boost sparsehash) optdepends=('graphviz: graph layout' 'python2-matplotlib: graph drawing') options=(!libtool) source=("https://downloads.skewed.de/graph-tool/graph-tool-$pkgver.tar.bz2") sha256sums=('6c0c4336bed6e2f79c91ace6d6914145ee03d0bd5025473b5918aec2b0657f7a') prepare() { cd "$srcdir/graph-tool-$pkgver" ./configure --enable-openmp --prefix=/usr --docdir="/usr/share/doc/$pkgname" PYTHON=python2 } build() { cd "$srcdir/graph-tool-$pkgver" make -j 1 # most users will be surprised with the high memory usage required for parallel builds } check() { cd "$srcdir/graph-tool-$pkgver" make check } package() { cd "$srcdir/graph-tool-$pkgver" make DESTDIR="$pkgdir/" install }