mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
|
|
pkgname=libigraph
|
|
pkgver=0.10.15
|
|
pkgrel=0
|
|
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="
|
|
bf9f0f2f62618cf037bdbbf2e126d27ec4e45edfb65efcf26df3fc1fb71a3e1f05a8b9a62f972650d96daa1e7bd3f2a084fe39bbca42e808cc737165514276e0 igraph-0.10.15.tar.gz
|
|
"
|