1 # Contributor: alberto penaforte <apenaforte@gmail.com>
6 pkgdesc="CalculiX: 3D finite element solver and post-processor"
7 depends=('spooles' 'arpack' 'lapack' 'blas' 'mesa' 'freeglut' 'gcc-fortran')
8 url=('http://www.calculix.de')
9 source=( http://www.dhondt.de/ccx_${pkgver}.src.tar.bz2
11 http://www.dhondt.de/cgx_${pkgver}.all.tar.bz2
15 md5sums=('e09a0428df0031ca7066f7b087a8e538'
16 '54d02a168797fd08cd96fc6bd5b0a95c'
17 'f896869835c91123a397a6ace74984d9'
18 '3b5adcd25614b50527fc08c7adf7f378'
19 '7bef6089e2dd48f082a179f023102c04'
21 arch=('i686' 'x86_64')
25 mv -f ccxMakefile ${srcdir}/CalculiX/ccx_${pkgver}/src/Makefile
26 [ "$CARC" = 'i686' ] && mv -f cgxMakefile32 ${srcdir}/CalculiX/cgx_${pkgver}/src/Makefile
27 [ "$CARC" = 'x86_64' ] && mv -f cgxMakefile64 ${srcdir}/CalculiX/cgx_${pkgver}/src/Makefile
29 cd ${srcdir}/CalculiX/ccx_${pkgver}/src
31 cd ${srcdir}/CalculiX/cgx_${pkgver}/src
32 sed -i "s/<iostream.h>/<iostream>/" uselibSNL.cpp
35 mkdir -p ${pkgdir}/usr/bin
36 cp ${srcdir}/CalculiX/ccx_${pkgver}/src/ccx_${pkgver} ${pkgdir}/usr/bin/ccx
37 cp ${srcdir}/CalculiX/cgx_${pkgver}/src/cgx ${pkgdir}/usr/bin/cgx