blob: eb9afcb569cbd71311f1205b2d7f4e8e8107d1b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Anton Kudelin <kudelin at proton dot me>
pkgname=dbcsr
pkgver=2.8.0
pkgrel=1
pkgdesc="Distributed Block Compressed Sparse Row matrix library"
arch=(x86_64)
url="https://github.com/cp2k/dbcsr"
license=(GPL-2.0-only)
depends=(libxsmm blas lapack openmpi)
makedepends=(cmake ninja gcc-fortran python fypp)
source=($pkgname-$pkgver.tar.gz::https://github.com/cp2k/$pkgname/archive/refs/tags/v$pkgver.tar.gz
cmake.patch)
sha256sums=('470470338fb840776fbe6991e718699d879936d2f7a3f60af4df0aaaa99ca258'
'af12e55b6cbdd504379349a88c499e4ceac53bd8eb907133aaa95b8a97da85be')
prepare() {
# Patching CMakeLists.txt
cd "$srcdir/$pkgname-$pkgver"
patch -p0 < "$srcdir/cmake.patch"
}
build() {
cd "$srcdir"
cmake \
-B build \
-S $pkgname-$pkgver \
-D CMAKE_INSTALL_PREFIX=/usr \
-D BUILD_SHARED_LIBS=ON \
-D USE_MPI_F08=ON \
-D USE_SMM=libxsmm \
-G Ninja \
-W no-dev
cmake --build build
}
check() {
cd "$srcdir/build"
ctest
}
package() {
cd "$srcdir"
DESTDIR="$pkgdir" cmake --install build
}
|