summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e4765cdb9bbb933b454e15b9e2a82f027426ca8 (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
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

pkgname=orcaqm
pkgver=4.2.1
_openmpi_ver=3.1.4
pkgrel=1
pkgdesc="ORCA is an ab initio, DFT, and semi-empirical SCF-MO package"
url="https://orcaforum.kofo.mpg.de/app.php/portal"
license=("custom")
arch=(x86_64)
depends=("openmpi>=3" "openmpi<4")
makedepends=('xz')
# Due to licensing issues you must register and download the package from the ORCA url and put it in the PKGBUILD folder!
source=("local://orca_${pkgver//./_}_linux_x86-64_shared_openmpi${_openmpi_ver//./}.tar.xz"
        "orcaqm")
noextract=("orca_${pkgver//./_}_linux_x86-64_shared_openmpi${_openmpi_ver//./}.tar.xz")
sha1sums=('fe16ea2d16b04ba9edac98498aa8f5bb2448463d'
          'dd42dc249e1327cf99cd09dc1cda459a6fc48df6')

PKGEXT='.pkg.tar'

package() {
  # create necessary directories
  mkdir -p ${pkgdir}/opt/orca

  # install stuff in place
  tar -xJf ${srcdir}/orca_${pkgver//./_}_linux_x86-64_shared_openmpi${_openmpi_ver//./}.tar.xz --strip 1 -C ${pkgdir}/opt/orca
  install -Dm755 ${srcdir}/orcaqm ${pkgdir}/usr/bin/orcaqm
}