You are not logged in.
Pages: 1
#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
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
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
Do you want to adopt this package?
If you don't, please post your PKGBUILD on the AUR page of the package.
Offline
Pages: 1