updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / gmsh-nightly_bin / PKGBUILD
blob5aafcd5b1baa8a7d2e0fdd8db7bcef57eabbbdce
1 # Contributor: mickele <mimocciola@yahoo.com>
2 # Contributor: gborzi <gborzi@ieee.org>
3 # Contributor: Emanuele Rossi <nuovodna at gmail dot com>
4 # Maintainer: wallish <wallish77 at gmail dot com>
6 pkgname=gmsh-nightly_bin
7 pkgver=2.5.1+svn
8 pkgrel=1
9 pkgdesc="Gmsh is an automatic 3D finite element mesh generator with pre and post-processing facilities."
10 arch=('i686' 'x86_64')
11 url="http://www.geuz.org/gmsh/"
12 license=('custom')
13 depends=('fltk' 'lapack' 'lua' 'med')
14 makedepends=('cmake' 'desktop-file-utils' 'sed' 'coreutils')
15 optdepends=('opencascade>=6.5.0: for iges import' 
16                         'gmsh-docs: docs for gmsh')
17 conflicts=('gmsh')
18 source=(http://www.geuz.org/gmsh/bin/Linux/gmsh-nightly-Linux.tgz gmsh-nightly.desktop)
19 md5sums=('b6ebe01b36f2f7adc854ea0a56a38c8f'
20          'a0790ee6e40092b544c1ee708ab27bdc')     
22 build(){
23   cd "${srcdir}/gmsh-2.5.1-svn-Linux" || return 1
25   # Intallation
26   mkdir -p ${pkgdir}/opt/gmsh-nightly
27   cp -a ./* ${pkgdir}/opt/gmsh-nightly || return 1
29   # Scripts for running it
30   mkdir -p ${pkgdir}/usr/bin/
31   cat << EOF > ${pkgdir}/usr/bin/gmsh
32 #!/bin/bash
33 cd /opt/gmsh-nightly/bin
34 ./gmsh \$@
35 EOF
37   # Fixing permissions
38   chmod 755 ${pkgdir}/usr/bin/gmsh || return 1
40   # .desktop file 
41   mkdir -p ${pkgdir}/usr/share/applications
42   install -m 644 ${srcdir}/gmsh-nightly.desktop ${pkgdir}/usr/share/applications || return 1
43   install -m 644 ${srcdir}/gmsh-nightly.desktop ${pkgdir}/usr/share/applications || return 1
45