desktop/med/PKGBUILD

50 lines
1.4 KiB
Bash
Raw Normal View History

2018-06-25 04:11:49 +08:00
# Contributor: Oliver Goethel <deezy>
pkgname=med
2018-10-22 15:58:44 +08:00
pkgver=3.3.1
2018-10-22 15:26:29 +08:00
pkgrel=1
2018-06-25 04:11:49 +08:00
pkgdesc="MED stands for Modelisation et Echanges de Donnees, i.e. Data Modelization and Exchanges - MED is code-aster exchange module linked to hdf5"
2018-10-22 15:58:44 +08:00
url="https://www.salome-platform.org/downloads"
2018-06-25 04:11:49 +08:00
license=('LGPL')
depends=('hdf5' 'openmpi' 'swig')
makedepends=('gcc-fortran' 'coreutils' 'python2')
optdepends=('tk')
provides=()
conflicts=('med_fichier')
replaces=('med_fichier')
backup=()
arch=('x86_64')
source=("http://files.salome-platform.org/Salome/other/${pkgname}-${pkgver}.tar.gz"
2018-10-22 15:58:44 +08:00
"hdf5-1.10-support.patch")
md5sums=('4981a02fa50b1a487a022804512631ff'
'8fe2bc9bc5e6756351e1ff80e613dba3')
prepare() {
cd "$pkgname-$pkgver"_SRC
patch -p1 -i ../hdf5-1.10-support.patch
autoreconf -i
}
2018-06-25 04:11:49 +08:00
build() {
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}"
export F77=mpif90
export FC=mpif90
export PYTHON="$(which python2)"
2018-10-22 15:58:44 +08:00
cd "${pkgname}-${pkgver}"_SRC
./configure --with-f90=mpif90 --prefix=/usr --datadir=/usr/share/med --with-swig=yes
make
2018-06-25 04:11:49 +08:00
}
package() {
2018-10-22 15:58:44 +08:00
cd "${pkgname}-${pkgver}"_SRC
2018-06-25 04:11:49 +08:00
2018-10-22 15:58:44 +08:00
make DESTDIR=${pkgdir} install
2018-06-25 04:11:49 +08:00
}