Skip to content

Instantly share code, notes, and snippets.

@katherlee
Created July 10, 2018 21:52
Show Gist options
  • Save katherlee/2a958be07b9606af77bd97badf5c6884 to your computer and use it in GitHub Desktop.
Save katherlee/2a958be07b9606af77bd97badf5c6884 to your computer and use it in GitHub Desktop.
python-pyscf
pkgname='python-pyscf'
_name=${pkgname#python-}
pkgver=1.5.1
pkgrel=1
pkgdesc="Python module for quantum chemistry"
provides=('python-pyscf')
arch=('x86_64')
url="https://github.com/sunqm/pyscf"
source=("https://github.com/sunqm/pyscf/archive/v${pkgver}.tar.gz")
md5sums=('c19087b98f4ff6492a62988dba1d036b')
license=('BSD')
depends=('python' 'python-numpy' 'python-scipy' 'python-h5py' 'xcfun-pyscf' 'libcint-cint3' 'libxc')
makedepends=('cmake')
conflicts=(${pkgname}-git)
build() {
cd "${_name}-${pkgver}"
PYSCF_INC_DIR=/usr python setup.py build
}
package() {
cd "${_name}-${pkgver}"
PYSCF_INC_DIR=/usr python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment