blob: d9011868bb0776714ae3a439ff61f14c78b7ffba (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Thomas Pointhuber <thomas.pointhuber@gmx.at>
pkgname=sparselizard
pkgver=2022.05
pkgrel=2
pkgdesc="C++ FEM library | user-friendly | multi-physics | hp-adaptive | HPC"
arch=("i686" "x86_64")
url="https://www.sparselizard.org/"
license=('GPL2')
groups=()
depends=("cblas" "metis" "mumps" "openmpi" "petsc" "slepc" "gmsh")
makedepends=("cmake" "gcc")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/halbux/sparselizard/archive/refs/tags/v.$pkgver.tar.gz")
noextract=()
sha256sums=("0d5216c79369215d11d3a9dd0fcd2c36eccad02131f9db0bb6ecb7f8c4491a15")
build() {
cd "sparselizard-v.$pkgver"
mkdir -p build && cd build
source /etc/profile.d/petsc.sh # gets PETSC_DIR
source /etc/profile.d/slepc.sh # gets SLEPC_DIR
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DBLAS_INCLUDE_PATH=/usr/include \
-DBLAS_LIBRARIES=/usr/lib/libcblas.so \
-DMETIS_INCLUDE_PATH=/usr/include \
-DMETIS_LIBRARIES=/usr/lib/libmetis.so \
-DMUMPS_INCLUDE_PATH=/usr/include \
-DMUMPS_LIBRARIES=/usr/lib/libmumps_common.so \
-DMPI_INCLUDE_PATH=/usr/include \
-DMPI_LIBRARIES=/usr/lib/libmpi_cxx.so \
-DMPI_PATH=/usr/lib/openmpi \
-DPETSCCONF_INCLUDE_PATH="${PETSC_DIR}/include/" \
-DPETSC_INCLUDE_PATH="${PETSC_DIR}/include/" \
-DPETSC_LIBRARIES="${PETSC_DIR}/lib/libpetsc.so" \
-DPETSC_PATH="${PETSC_DIR}/lib/" \
-DSLEPC_INCLUDE_PATH="${SLEPC_DIR}/include/" \
-DSLEPC_LIBRARIES="${SLEPC_DIR}/lib/libslepc.so" \
-DGMSH_INCLUDE_PATH=/usr/include \
-DGMSH_LIBRARIES=/usr/lib/libgmsh.so
cmake --build . -j$(nproc)
}
package() {
cd "sparselizard-v.$pkgver/build"
make DESTDIR="${pkgdir}" install
}
|