summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXwang2016-06-25 08:12:34 +0200
committerXwang2016-06-25 08:12:34 +0200
commitbbe965be0d19934e7efe83ccc60ed5ba0c240b93 (patch)
tree121fe3efdb4bc1d6ac3099cf4cf929fb62d66368
parent16ec58c41e85eef1107627ff8567d3f7fb5b5f0f (diff)
downloadaur-bbe965be0d19934e7efe83ccc60ed5ba0c240b93.tar.gz
Changed paraview version detection
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f300e058364..6dcf7920440 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = openfoam
pkgdesc = The open source CFD toolbox
pkgver = 3.0.x
- pkgrel = 6
+ pkgrel = 7
url = http://www.openfoam.org
install = openfoam.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 02076212ff8..6b8d30a2af5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=openfoam
_distpkgname=OpenFOAM
pkgver=3.0.x
-pkgrel=6
+pkgrel=7
pkgdesc="The open source CFD toolbox"
arch=("any")
url="http://www.openfoam.org"
@@ -23,7 +23,8 @@ md5sums=('SKIP')
prepare() {
# Extract the current version and major of paraview and of scotch for use in the system preferences
- _pversion=`pacman -Q paraview | sed -e 's/.* //; s/-.*//g'`
+ #_pversion=`pacman -Q paraview | sed -e 's/.* //; s/-.*//g'`
+ _pversion=$(pacman -Q $(pacman -Qqo $(which paraview)) | sed -e 's/.* //; s/-.*//g')
_pmajor=`echo $_pversion | cut -d '.' -f1`
_sversion=`pacman -Q scotch | sed -e 's/.* //; s/-.*//g'`