diff options
author | Daniel Müllner | 2015-06-10 20:06:26 +0200 |
---|---|---|
committer | Daniel Müllner | 2015-06-10 20:06:26 +0200 |
commit | 1ed975426421cefc70a547eab3bf0500d35a63ec (patch) | |
tree | abfafb66ec32549f576e943f2fe318d87126e8f3 /PKGBUILD | |
download | aur-1ed975426421cefc70a547eab3bf0500d35a63ec.tar.gz |
Initial import, version 2.2.43
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c045a812d411 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Daniel Müllner <daniel@danifold.net> + +# Remove the --enable-openmp flag below if you do not want parallelization. + +pkgname=python2-graph-tool +pkgver=2.2.43 +pkgrel=1 +pkgdesc='A Python module for manipulation and statistical analysis of graphs' +arch=('i686' 'x86_64') +url='http://projects.skewed.de/graph-tool/' +license=(GPL3) +depends=(boost python2 expat python2-scipy python2-numpy cgal) +makedepends=(sparsehash python2-cairo) +optdepends=('graphviz: graph layout' +'cairomm: graph drawing' +'python2-cairo: graph drawing' +'python2-matplotlib: graph drawing') +options=(!libtool) +source=("http://downloads.skewed.de/graph-tool/graph-tool-$pkgver.tar.bz2") +sha256sums=('c0ef941dc611fad5800c64417543e751f9edaeb511460ba06a43263c5b0efbd6') + +prepare() { + cd "$srcdir/graph-tool-$pkgver" + ./configure --enable-openmp --prefix=/usr --docdir="/usr/share/doc/$pkgname" PYTHON=python2 + # Remove information about the source directory, which is temporary. + sed -i 's|#define PACKAGE_SOURCE_DIR ".*"|/* removed since the source directory is temporary */|' config.h +} + +build() { + cd "$srcdir/graph-tool-$pkgver" + make +} + +check() { + cd "$srcdir/graph-tool-$pkgver" + make check +} + +package() { + cd "$srcdir/graph-tool-$pkgver" + make DESTDIR="$pkgdir/" install +} |