updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / homard / PKGBUILD
bloba49bbb8108ca5ddc25e92d08b9416a9505b3bf21
1 # Maintainer: Michele Mocciola <mickele>
2 # Contributor: Brice Méalier <mealier_brice____AT____yahoo____DOT____fr>
3 pkgname=homard
4 pkgver=9.5
5 pkgrel=3
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"
9 depends=('python')
10 makedepends=('sed' 'coreutils')
11 arch=(i386)
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
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
22 _pythonver=2.6
24 build() {
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
29   # ASTER_HOMARD
30   install -d 755 "${pkgdir}${_installdir}/ASTER_HOMARD" || return 1
31   cp -rf ASTER_HOMARD/aster_homard_py "${pkgdir}${_installdir}/ASTER_HOMARD" || return 1
33   # homard
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
38   # Linux/Linux64
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
42   else
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
45   fi
47   # Intranet
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"
52                           
53   python /usr/lib/python${_pythonver}/compileall.py "${pkgdir}${_installdir}"
54   python -O /usr/lib/python${_pythonver}/compileall.py "${pkgdir}${_installdir}"
56 md5sums=('49fe55a0a46491124c16965a2db59c5e')