mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
44 lines
1013 B
Plaintext
44 lines
1013 B
Plaintext
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Grigory Kirillov <txgk@bk.ru>
|
|
pkgname=libigraph
|
|
pkgver=0.10.4
|
|
pkgrel=2
|
|
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() {
|
|
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="
|
|
71bcec5f0ba100aae7614753f9232a4221580b822b4dc120e3a80eab59d70c42aedddb00728eb13faf7e522332c514c2e030314c416ded8a70e5de990ea8039b igraph-0.10.4.tar.gz
|
|
"
|