summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7220fbd8a36ee7872990498a7706b46205e365d (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: Shiv Upadhyay <shivnupadhyay@gmail.com>
pkgname=psi4-git-gccmkl
pkgver=master
pkgrel=2
epoch=
pkgdesc="Open-source quantum chemistry"
arch=("x86_64")
url="http://psicode.org"
license=("GPL")
groups=()
depends=(blas lapack boost intel-mkl pybind11)
makedepends=(gcc cmake)
checkdepends=()
optdepends=()
provides=(psi4)
conflicts=(psi4-git)
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/psi4/psi4/archive/master.zip")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

build() {
	cd "$srcdir"
    export MATH_ROOT=/opt/intel/mkl
    cmake psi4-master -Bbuild -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" \
        -DOpenMP_LIBRARY_DIRS="$MATH_ROOT/lib/intel64" \
        -Dpybind11_DIR="/usr/share/cmake" \
        -DENABLE_ambit="OFF"  \
        -DENABLE_CheMPS2="OFF" \
        -DENABLE_dkh="OFF" \
        -DENABLE_libefp="OFF" \
        -DENABLE_erd="OFF" \
        -DENABLE_simint="OFF" \
        -DENABLE_gdma="OFF" \
        -DENABLE_PCMSolver="OFF" \
        -DENABLE_snsmp2="OFF" \
        -DENABLE_v2rdm_casscf="OFF" \
        -DENABLE_gpu_dfcc="OFF" \
        -DMAX_AM_ERI=5
	cd build
	make -j`getconf _NPROCESSORS_ONLN`
}

check() {
	cd "$srcdir/build"
    ctest -L smoke -j`getconf _NPROCESSORS_ONLN` # Really quick <1min tests
    ctest -L quick -j`getconf _NPROCESSORS_ONLN` # Quick ~10-20 min tests
    #ctest  # complete long tests
}

package() {
	cd "$srcdir/build"
	make install
}