summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingbei Li2018-11-22 11:59:01 +0800
committerJingbei Li2018-11-22 11:59:01 +0800
commit38cce6c54daa27567a1351f7cf15063044e6c899 (patch)
tree84132a002355577d3aebd8549f899341b8721c71
parente2213a17037e29064ceb3076164950a11d57c8ee (diff)
downloadaur-38cce6c54daa27567a1351f7cf15063044e6c899.tar.gz
force to use openmpi
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5fdd7b754c6..4230532d3b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = openfoam
pkgdesc = The open source CFD toolbox
pkgver = 6
- pkgrel = 1
+ pkgrel = 2
url = http://www.openfoam.org
install = openfoam.install
arch = x86_64
license = GPL
makedepends = bash
depends = bzip2
+ depends = openmpi
depends = paraview
depends = parmetis
depends = scotch
diff --git a/PKGBUILD b/PKGBUILD
index 0ced6c3d2d0..4621b804183 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,14 +5,14 @@
pkgname=openfoam
pkgver=6
-pkgrel=1
+pkgrel=2
pkgdesc="The open source CFD toolbox"
_distpkgname=OpenFOAM
_gitname=$_distpkgname-$pkgver
arch=('x86_64')
url="http://www.openfoam.org"
license=("GPL")
-depends=('bzip2' 'paraview' 'parmetis' 'scotch' 'boost' 'flex' 'cgal')
+depends=('bzip2' 'openmpi' 'paraview' 'parmetis' 'scotch' 'boost' 'flex' 'cgal')
makedepends=('bash')
source=("https://github.com/OpenFOAM/$_gitname/archive/version-$pkgver.tar.gz" "${pkgname}.install")
install="${pkgname}.install"
@@ -31,6 +31,8 @@ prepare() {
echo "export WM_MPLIB=SYSTEMOPENMPI" >> ${srcdir}/prefs.sh
echo "export ParaView_VERSION=${_pversion}" >> ${srcdir}/prefs.sh
echo "export ParaView_MAJOR=${_pmajor}" >> ${srcdir}/prefs.sh
+ # https://www.cfd-online.com/Forums/openfoam-installation/148321-gcc-error-unrecognized-command-line-option-showme-link.html
+ echo "export export WM_MPLIB=OPENMPI" >> ${srcdir}/prefs.sh
cp ${srcdir}/prefs.sh ${srcdir}/${_distpkgname}-${pkgver}/etc #|| return 1
# Generate the scotch.sh file for arch