# Contributor: Holger Jaekel # Maintainer: Holger Jaekel pkgname=superlu pkgver=6.0.0 pkgrel=0 pkgdesc="Sparse LU factorization library" url="https://portal.nersc.gov/project/sparse/superlu/" arch="all" license="BSD-3-Clause" makedepends=" cmake gfortran openblas-dev samurai " subpackages=" $pkgname-dev " source=" https://portal.nersc.gov/project/sparse/superlu/superlu-$pkgver.tar.gz " build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DCMAKE_INSTALL_INCLUDEDIR="include/superlu" \ -Denable_internal_blaslib:BOOL=OFF \ -DBUILD_SHARED_LIBS=ON cmake --build build } check() { cd build ctest --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 8feeb08404cad58724f0f6478bc785b56d8c725b549f1fdc07d3578c4e14bdbdbd8bcda1cdfd366a39417eda60765825e87cf781c68e6723a8246cb357b41439 superlu-6.0.0.tar.gz "