updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / calculix / PKGBUILD
blobfa98db7f8969917170bd7444fae3b21d4e7847de
1 # Contributor: alberto penaforte <apenaforte@gmail.com>
3 pkgname=calculix
4 pkgver=2.3
5 pkgrel=1
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
10          ccxMakefile
11          http://www.dhondt.de/cgx_${pkgver}.all.tar.bz2
12          cgxMakefile32
13          cgxMakefile64
14          )
15 md5sums=('e09a0428df0031ca7066f7b087a8e538'
16          '54d02a168797fd08cd96fc6bd5b0a95c'
17          'f896869835c91123a397a6ace74984d9'
18          '3b5adcd25614b50527fc08c7adf7f378'
19          '7bef6089e2dd48f082a179f023102c04'
20          )
21 arch=('i686' 'x86_64')
22 license=('GPL')
24 build(){
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
30   make -j 3 || return 1
31   cd ${srcdir}/CalculiX/cgx_${pkgver}/src
32   sed -i "s/<iostream.h>/<iostream>/" uselibSNL.cpp
33   make -j 3 || return 1
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