summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de793e7f61974a2f70249ce9fdc9cefab30e5cb4 (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
pkgname=psi4-git
pkgver=1.7.r22.g61c0b47982
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)
conflicts=(psi4)
provides=(psi4)
source=($pkgname::git+https://github.com/psi4/psi4)
md5sums=("SKIP")

pkgver() {
	cd $pkgname
	git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

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