You are not logged in.

#1 2011-08-02 03:39:16

freevryheid
Member
Registered: 2010-09-14
Posts: 15

med

#Revised

# Maintainer: Michele Mocciola <mickele>
# Contributor: Brice Méalier <mealier_brice@yahoo.fr>

pkgname=med
pkgver=3.0.3
pkgrel=4
pkgdesc="MED stands for Modelisation et Echanges de Donnees, i.e. Data Modelization and Exchanges - MED is code-aster exchange module linked to hdf5"
url="http://www.code-aster.org/outils/med/"
license="LGPL"
depends=('hdf5' 'tk' 'gcc-libs')
makedepends=('make' 'gcc' 'gcc-fortran' 'coreutils')
provides=()
conflicts=('med_fichier')
replaces=('med_fichier')
backup=()
arch=('i686' 'x86_64')
install=${pkgname}.install
source=("http://files.salome-platform.org/Salome/other/med-${pkgver}.tar.gz")

build() {
  if [ "$CARCH" = "x86_64" ]; then
    export FFLAGS="-fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 -ffixed-line-length-0 ${CFLAGS}"
    export FCFLAGS="-fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 -ffixed-line-length-0 ${CFLAGS}"
    export CPPFLAGS="-DHAVE_F77INT64 ${CPPFLAGS}"
  else # i686
    export FFLAGS="-fopenmp -fPIC -ffixed-line-length-0 ${CFLAGS}"
    export FCFLAGS="-fopenmp -fPIC -ffixed-line-length-0 ${CFLAGS}"
  fi

  cd ${srcdir}/${pkgname}-${pkgver}_SRC || return 1

  ./configure --with-f90=gfortran --prefix=/usr || return 1
  make || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}_SRC || return 1

  make DESTDIR=${pkgdir} install || return 1

  mv ${pkgdir}/usr/share/doc ${pkgdir}/usr/share/doc-tmp || return 1
  mkdir -p ${pkgdir}/usr/share/doc/ || return 1
  mv ${pkgdir}/usr/share/doc-tmp ${pkgdir}/usr/share/doc/${pkgname} || return 1

  cd ${pkgdir} || return 1
  for _FILE in `grep -Rl "\-L${srcdir}/${pkgname}-${pkgver}_SRC/src" *`
  do
    sed -e "s| \-L${srcdir}/${pkgname}-${pkgver}_SRC/src||" \
        -i ${_FILE}
  done
}

md5sums=('ed89cf66e38f063c962c6d540301b047')

Last edited by freevryheid (2011-08-02 04:01:32)

Offline

#2 2011-08-02 03:44:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: med

When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.


What do you want us to do? Check if it's working?
What's wrong with http://aur.archlinux.org/packages.php?ID=13076 ? I see your PKGBUILD has a working url ...

Last edited by karol (2011-08-02 03:48:36)

Offline

#3 2011-08-02 03:59:31

freevryheid
Member
Registered: 2010-09-14
Posts: 15

Re: med

yep, replaced out of date PKGBUILD with the one posted - needed for gmsh. It's working OK.

Last edited by freevryheid (2011-08-02 04:00:09)

Offline

#4 2011-08-02 04:01:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: med

Do you want to adopt this package?
If you don't, please post your PKGBUILD on the AUR page of the package.

Offline

Board footer

Powered by FluxBB