# Maintainer: Carlos Aznarán # Maintainer: Gianluca Pettinello # Contributor: Christian Pfeiffer pkgname=superlu_dist pkgver=8.2.0 pkgrel=1 pkgdesc="Distributed memory, MPI based SuperLU" arch=('x86_64') url="https://github.com/xiaoyeli/${pkgname}" license=('custom') depends=(lapack parmetis) # openblas combblas makedepends=(cmake) # gcc-fortran ninja source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('590cfe0682a21d8e4807a0c9f4bbd079216216885202c434848991acdaa00f7d4cf6eb7d86197cc8df3feace787770e9ff2f974b996da80c0762ebc97688fc12') options=('staticlibs') # -DTPL_ENABLE_COMBBLASLIB=ON \ # -DTPL_COMBBLAS_INCLUDE_DIRS="/usr/include/CombBLAS;/usr/include/CombBLAS/Applications/BipartiteMatchings" \ # -DTPL_COMBBLAS_LIBRARIES="/usr/lib/libCombBLAS.so" \ # -DCMAKE_Fortran_COMPILER=mpifort \ build() { cmake \ -S ${pkgname}-${pkgver} \ -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -Denable_examples=OFF \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_CXX_STANDARD=14 \ -DCMAKE_C_COMPILER=mpicc \ -DCMAKE_CXX_COMPILER=mpicxx \ -DXSDK_ENABLE_Fortran=OFF \ -Denable_doc=OFF \ -Denable_single=ON \ -Denable_double=ON \ -DTPL_PARMETIS_INCLUDE_DIRS="/usr/include" \ -DTPL_PARMETIS_LIBRARIES="/usr/lib/libparmetis.so" \ -DTPL_BLAS_LIBRARIES="/usr/lib/libblas.so" \ -DTPL_LAPACK_LIBRARIES="/usr/lib/liblapack.so" \ -DTPL_ENABLE_LAPACKLIB=ON \ -DTPL_ENABLE_PARMETISLIB=ON \ -DTPL_ENABLE_COMBBLASLIB=OFF \ -DTPL_ENABLE_CUDALIB=OFF \ -DTPL_ENABLE_HIPLIB=OFF \ -DTPL_ENABLE_INTERNAL_BLASLIB=OFF \ -DCMAKE_INSTALL_INCLUDEDIR=include/superlu_dist \ -Wno-dev cmake --build build --target all } package() { DESTDIR="${pkgdir}" cmake --build build --target install install -Dm644 ${pkgname}-${pkgver}/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" install -Dm644 ${pkgname}-${pkgver}/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 ${pkgname}-${pkgver}/DOC/ug.pdf "${pkgdir}/usr/share/doc/${pkgname}/ug.pdf" }