# Contributor: Grigory Kirillov # Maintainer: pkgname=libigraph pkgver=0.10.6 pkgrel=1 pkgdesc="Library for creating and manipulating graphs" url="https://igraph.org" # s390x: blocked by openmp arch="all !s390x" license="GPL-2.0-or-later" # bison and flex are needed when building from commit makedepends=" arpack-dev cmake glpk-dev libxml2-dev openblas-dev plfit-dev samurai " subpackages="$pkgname-dev" source="https://github.com/igraph/igraph/releases/download/$pkgver/igraph-$pkgver.tar.gz" builddir="$srcdir/igraph-$pkgver" build() { # For building against master branch: #echo "$pkgver" > IGRAPH_VERSION cmake -B builddir -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON cmake --build builddir } check() { cmake --build builddir --target check } package() { DESTDIR="$pkgdir" cmake --install builddir } sha512sums=" e01d8bf2335b95a94a0abf095d2f43bc4397f028406389c4a0bddc038b117d7c5b6f02032d77c11c44ae51dbae10b92c677555d879dec6f028a5d8cb97c37029 igraph-0.10.6.tar.gz "