1 # Maintainer: mickele <mimocciola@yahoo.com>
6 pkgdesc="SALOME provides a generic platform for Pre and Post-Processing for numerical simulation. YACS Module."
7 url="http://www.salome-platform.org"
8 depends=('salome-kernel' 'salome-gui' 'python' 'qt' 'opencascade' 'qscintilla' 'omniorb' 'omniorbpy' 'omninotify' 'swig' 'graphviz' 'libxml2' 'expat' 'sed')
9 makedepends=('gcc' 'automake' 'autoconf' 'libtool' 'make' 'doxygen' 'docutils' 'python-sphinx')
10 arch=('i686' 'x86_64')
14 source=("http://files.opencascade.com/Salome/Salome${pkgver}/src${pkgver}.tar.gz" "${pkgname}.profile")
17 _source=/src${pkgver}/YACS_SRC_${pkgver}
18 _installdir=/opt/salome/yacs
22 source /etc/profile.d/salome-kernel.sh || return 1
23 source /etc/profile.d/salome-gui.sh || return 1
25 cd ${srcdir}${_source} || return 1
27 # two problems caused by gcc-4.5
28 sed -e "s|YACS::Exception::Exception|YACS::Exception|" \
29 -i src/bases/Cstr2d.cxx
30 sed -e "s|YACS::Exception::Exception|YACS::Exception|" \
31 -i src/yacsloader/parserBase.cxx
34 ./build_configure || return 1
35 ./configure --prefix=${_installdir} \
36 --with-python-site=${_installdir}/lib/python-${_pythonver}/site-packages/salome \
37 --with-python-site-exec=${_installdir}/lib/python-${_pythonver}/site-packages/salome \
40 --enable-production || return 1
46 cd ${srcdir}${_source} || return 1
48 make DESTDIR="${pkgdir}" install || return 1
50 install -D -m755 "${srcdir}/${pkgname}.profile" \
51 "${pkgdir}/etc/profile.d/${pkgname}.sh" || return 1
54 md5sums=('ec363b2ff2dbdb889c973e9e19b2970f'
55 'f2beeb52e0a7ec86fa3ebf92c082403c')