summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba6ca5b7aef69dddaa0805d995ef25cca07593d1 (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
pkgname=psi4
pkgver=1.7
pkgrel=1
pkgdesc="Open-Source Quantum Chemistry - an electronic structure package in C++ driven by Python"
arch=("x86_64")
url="http://psicode.org"
license=("GPL")
depends=(blas lapack python python-numpy gau2grid eigen
		 pybind11 python-qcelemental python-qcengine libxc
		 python-optking python-msgpack python-networkx)
makedepends=(gcc cmake make)
checkdepends=()
optdepends=(perl python-pytest python-pytest-xdist python-sphinx python-nbsphinx)
provides=(psi4)
conflicts=(psi4-git)
source=($pkgname-$pkgver.tar.gz::https://github.com/psi4/psi4/archive/v1.7.tar.gz)
sha256sums=('85a2772a148d57423a909fd91f3f9b068ae393b161510e78e7a824fbe3997366')

build() {
    cd $pkgname-$pkgver
	cmake -S. -Bbuild -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/"
	cd build
	make -j`getconf _NPROCESSORS_ONLN`
}

check() {
	cd "$pkgname-$pkgver/build"
	#test 243 skipped. See https://github.com/psi4/psi4/issues/2828
	ctest -j`getconf _NPROCESSORS_ONLN` -L quick -E 243
}

package() {
	cd "$pkgname-$pkgver/build"
	make install
}