summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Mocciola2015-07-15 22:51:16 +0200
committerMichele Mocciola2015-07-15 22:51:16 +0200
commitee01b72891ac1bb4f96c26141e2df5b402d05ac7 (patch)
tree330648197be35fb31b7152d17549682d7e29835e
downloadaur-ee01b72891ac1bb4f96c26141e2df5b402d05ac7.tar.gz
Update to version 7.6.0
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD73
-rw-r--r--salome-smesh.profile15
3 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cef1405b8e6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = salome-smesh
+ pkgdesc = Generic platform for Pre and Post-Processing for numerical simulation - SMESH Module
+ pkgver = 7.6.0
+ pkgrel = 1
+ url = http://www.salome-platform.org
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = boost
+ makedepends = swig2
+ makedepends = python2-sphinx
+ makedepends = optipng
+ depends = salome-geom>=7.6.0
+ depends = salome-geom<7.7.0
+ depends = salome-med>=7.6.0
+ depends = salome-med<7.7.0
+ source = salome-smesh.profile
+ md5sums = 2770fc45e9fc631a1f68ec5e851705e4
+
+pkgname = salome-smesh
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f204a19744
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: Michele Mocciola <mickele>
+
+pkgname=salome-smesh
+pkgver=7.6.0
+pkgrel=1
+pkgdesc="Generic platform for Pre and Post-Processing for numerical simulation - SMESH Module"
+url="http://www.salome-platform.org"
+depends=('salome-geom>=7.6.0' 'salome-geom<7.7.0' 'salome-med>=7.6.0' 'salome-med<7.7.0')
+makedepends=('boost' 'swig2' 'python2-sphinx' 'optipng')
+arch=('i686' 'x86_64')
+conflicts=()
+provides=()
+license=('LGPL')
+source=("salome-smesh.profile")
+
+_source=smesh
+_installdir=/opt/salome/smesh
+_paraviewrootdir=/usr
+_paraviewver=4.3
+
+prepare() {
+ msg "Connecting to git server..."
+
+ if [[ -d ${_source} ]] ; then
+ rm -rf ${_source}
+ fi
+
+ git clone git://git.salome-platform.org/modules/${_source}.git
+ cd ${_source}
+ git checkout V${pkgver:0:1}_${pkgver:2:1}_${pkgver:4:1}
+
+ msg "GIT checkout done or server timeout"
+
+ # python -> python2
+ for _FILE in `grep -Rl "/usr/bin/env python" * `
+ do
+ sed -e "s|/usr/bin/env python|/usr/bin/env python2|" -i ${_FILE}
+ done
+}
+
+build() {
+ source /etc/salome/profile.d/salome-kernel.sh
+ source /etc/salome/profile.d/salome-gui.sh
+ source /etc/salome/profile.d/salome-geom.sh
+ source /etc/salome/profile.d/salome-med.sh
+
+ rm -rf "${srcdir}/${_source}/build"
+ mkdir -p "${srcdir}/${_source}/build"
+ cd "${srcdir}/${_source}/build"
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=$_installdir \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+ -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build2 \
+ -DVTK_DIR="${_paraviewrootdir}/lib/cmake/paraview-${_paraviewver}" \
+ -DSWIG_EXECUTABLE=/usr/bin/swig-2
+ make
+}
+
+package() {
+ cd "${srcdir}/${_source}/build"
+
+ make DESTDIR="${pkgdir}" install
+
+ for _FILE in share/doc/salome/gui/SMESH/a-deflection1d.png share/doc/salome/gui/SMESH/automaticlength.png share/doc/salome/gui/SMESH/a-maxelarea.png share/doc/salome/gui/SMESH/failed_computation.png share/doc/salome/gui/SMESH/mesh_for_extr_along_path.png share/doc/salome/gui/SMESH/straight_before.png share/doc/salome/gui/SMESH/straight_after.png share/doc/salome/gui/SMESH/curvi_simple_before.png share/doc/salome/gui/SMESH/curvi_simple_after.png share/doc/salome/gui/SMESH/curvi_angles_after.png share/doc/salome/gui/SMESH/circle_simple_before.png share/doc/salome/gui/SMESH/circle_simple_after.png share/doc/salome/gui/SMESH/circle_angles_after.png share/doc/salome/gui/SMESH/length-crit.png share/doc/salome/gui/SMESH/a-maxelvolume.png share/doc/salome/gui/SMESH/meshtrianglemergeelem1.png share/doc/salome/gui/SMESH/mesh_cylinder_hexa.png
+ do
+ optipng -quiet -force -fix ${pkgdir}${_installdir}/${_FILE}
+ done
+
+ install -D -m755 "${srcdir}/${pkgname}.profile" \
+ "${pkgdir}/etc/salome/profile.d/${pkgname}.sh"
+}
+md5sums=('2770fc45e9fc631a1f68ec5e851705e4')
diff --git a/salome-smesh.profile b/salome-smesh.profile
new file mode 100644
index 00000000000..f757da1ec88
--- /dev/null
+++ b/salome-smesh.profile
@@ -0,0 +1,15 @@
+export SMESH_ROOT_DIR=/opt/salome/smesh
+
+_paraview_pythonpath="/usr/lib/paraview-4.3/site-packages/:/usr/lib/paraview-4.3/site-packages/vtk"
+if [[ $PYTHONPATH != *${_paraview_pythonpath}* ]]; then
+ export PYTHONPATH=${_paraview_pythonpath}:$PYTHONPATH
+fi
+export PYTHONPATH=$PYTHONPATH:$SMESH_ROOT_DIR/lib/python2.7/site-packages
+
+_paraview_librarypath="/usr/lib/paraview-4.3"
+if [[ $LD_LIBRARY_PATH != *${_paraview_librarypath}* ]]; then
+ export LD_LIBRARY_PATH=${_paraview_librarypath}:$LD_LIBRARY_PATH
+fi
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SMESH_ROOT_DIR/lib/salome
+
+export PATH=$SMESH_ROOT_DIR/bin/salome:$PATH \ No newline at end of file