Skip to content

Instantly share code, notes, and snippets.

@arcan1s
Created June 5, 2017 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcan1s/2b6e2bdd7eb1e090885d61bffe61d528 to your computer and use it in GitHub Desktop.
Save arcan1s/2b6e2bdd7eb1e090885d61bffe61d528 to your computer and use it in GitHub Desktop.
psi4
pkgname=psi4-git
_gitname=psi4
pkgver=master
pkgrel=1
pkgdesc="Open-source quantum chemistry"
arch=("i686" "x86_64")
url="http://psicode.org"
license=("GPL3")
depends=(blas lapack python2 boost python2-numpy)
makedepends=(gcc cmake)
source=("${_gitname}::git+https://github.com/psi4/psi4")
md5sums=("SKIP")
pkgver() {
cd "${_gitname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake psi4 -Bbuild -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr/"
cd "build"
make
}
package() {
cd "${srcdir}/build"
make install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment