blob: c55e69a70d48dc4482156e324fc06c73454137f9 (
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
|
# Maintainer: Shiv Upadhyay <shivnupadhyay@gmail.com>
pkgname=mrchem
pkgver=1.0.0_alpha1
pkgrel=1
epoch=
pkgdesc="MRChem: MultiResolution Chemistry"
arch=("x86_64")
url="https://mrchem.readthedocs.io"
license=("GPL")
groups=()
depends=(openmpi python python-parselglossy python-runtest)
makedepends=(cmake)
checkdepends=()
optdepends=()
provides=(mrchem)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/MRChemSoft/mrchem/archive/v1.0.0-alpha1.tar.gz")
noextract=()
sha256sums=("56a7b1677cc1e27d5875ef1e63012c19a314b1bc77dad7032dc70387158cf0f4")
validpgpkeys=()
build() {
cd "$srcdir/$pkgname-${pkgver//_/-}"
if [ -d build ]; then
rm -rf build
fi
mkdir build
./setup --omp --mpi --cxx=mpicxx --prefix="$pkgdir/" build
cd "$srcdir/$pkgname-${pkgver//_/-}/build"
make -j`getconf _NPROCESSORS_ONLN`
}
check() {
cd "$srcdir/$pkgname-${pkgver//_/-}/build"
#export DIRAC_MPI_COMMAND="mpirun -n 2"
ctest -L unit -j4
ctest -L integration -j4
}
package() {
cd "$srcdir/$pkgname-${pkgver//_/-}/build"
make install
}
|