aboutsummaryrefslogblamecommitdiffstats
path: root/testing/superlu/APKBUILD
blob: 8e9d87060f5564a86143af7a725b29f7d11288f7 (plain) (tree)
1
2
3
4
5
6
7
8


                                                   
            


                                                      
                                              










                                                                              






















                                                              
                                                                                                                                                                   
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=superlu
pkgver=5.2.2
pkgrel=0
pkgdesc="Sparse LU factorization library"
url="https://portal.nersc.gov/project/sparse/superlu/"
arch="all !mips !mips64" # blocked by openblas
license="BSD-3-Clause"
makedepends="
	cmake
	openblas-dev
	"
subpackages="
	$pkgname-dev
	"
source="
	https://portal.nersc.gov/project/sparse/superlu/superlu_$pkgver.tar.gz
	"

build() {
	mkdir build ; cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX:PATH=/usr \
		-DCMAKE_INSTALL_LIBDIR="lib" \
		-DCMAKE_INSTALL_INCLUDEDIR="include/superlu" \
		-Denable_blaslib=OFF \
		-DBUILD_SHARED_LIBS=ON
	make
}

check() {
	cd build
	ctest
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}

sha512sums="091928a3df3433b337ebdacdb28de341d6d29d655965de6ffd656a6de18cf11171555bfd3af73082af62b1cead6835b4c11e4ba524a32db7f7d28db47c9d490c  superlu_5.2.2.tar.gz"