1 # Maintainer: Michele Mocciola <mickele>
2 # Contributor: Brice Méalier <mealier_brice____AT____yahoo____DOT____fr>
6 pkgdesc="A refinement and de-refinement mesh tool, used by Code_Aster for its adaptative mesh capability."
7 url="http://www.code-aster.org/outils/homard"
8 license="custom: Free for use within Code-Aster"
10 makedepends=('sed' 'coreutils')
16 arch=('i686' 'x86_64')
17 install=(homard.install)
18 source=(http://www.code-aster.org/V2/UPLOAD/DOC/Telechargement/aster-full-src-10.1.0-4.noarch.tar.gz)
20 _installdir=/opt/aster/outils/HOMARD
21 _pkgversrc=${pkgver}-1
25 bsdtar -x -f aster-full-src-10.1.0/SRC/${pkgname}-${_pkgversrc}.all.tar.gz || return 1
27 cd "${srcdir}/${pkgname}-${pkgver}/HOMARD" || return 1
30 install -d 755 "${pkgdir}${_installdir}/ASTER_HOMARD" || return 1
31 cp -rf ASTER_HOMARD/aster_homard_py "${pkgdir}${_installdir}/ASTER_HOMARD" || return 1
34 sed -e "s|/logiciels/HOMARD/HOMARD_PUBLIC|$_installdir|g" \
35 -i "${srcdir}/${pkgname}-${pkgver}/HOMARD/homard_base"
36 install -m 755 homard_base "${pkgdir}${_installdir}/ASTER_HOMARD/homard" || return 1
39 if [ "$CARCH" = "x86_64" ]; then
40 install -m 755 -D Linux64/HOMARD_V${pkgver}.out "${pkgdir}${_installdir}/Linux64/HOMARD_V${pkgver}.out" || return 1
41 cp -rf Linux64/CAS_TESTS "${pkgdir}${_installdir}" || return 1
43 install -m 755 Linux/HOMARD_V${pkgver}.out "${pkgdir}${_installdir}/Linux/HOMARD_V${pkgver}.out" || return 1
44 cp -rf Linux/CAS_TESTS "${pkgdir}${_installdir}" || return 1
48 cp -rf Intranet "${pkgdir}${_installdir}" || return 1
50 # link to access to homard from codeaster
51 ln -sf "${_installdir}/ASTER_HOMARD/homard" "${pkgdir}/opt/aster/outils/homard"
53 python /usr/lib/python${_pythonver}/compileall.py "${pkgdir}${_installdir}"
54 python -O /usr/lib/python${_pythonver}/compileall.py "${pkgdir}${_installdir}"
56 md5sums=('49fe55a0a46491124c16965a2db59c5e')