Last active
August 29, 2015 14:16
-
-
Save joeydumont/560004cbba76939fe7b7 to your computer and use it in GitHub Desktop.
PKGBUILD for med-openmpi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -aur med-3.0.8_SRC.pristine/include/H5public_extract.h.in med-3.0.8_SRC.new/include/H5public_extract.h.in | |
--- med-3.0.8_SRC.pristine/include/H5public_extract.h.in 2015-03-05 11:12:31.668511247 -0500 | |
+++ med-3.0.8_SRC.new/include/H5public_extract.h.in 2015-03-05 11:22:20.159242461 -0500 | |
@@ -24,13 +24,15 @@ | |
//Extraction depuis H5public.h. | |
+%{ | |
@HDF5_TYPEDEF_HERR_T@ | |
@HDF5_TYPEDEF_HID_T@ | |
@HDF5_TYPEDEF_HSIZE_T@ | |
- | |
-#typedef int herr_t; | |
-#typedef int hid_t; | |
-#typedef unsigned long long hsize_t; | |
+%} | |
+ | |
+typedef int herr_t; | |
+typedef int hid_t; | |
+typedef unsigned long long hsize_t; | |
#ifdef __cplusplus | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Martin Ortbauer <mortbauer@gmail.com> | |
# Original: Michele Mocciola <mickele> | |
# Contributor: Brice Méalier <mealier_brice@yahoo.fr> | |
# Modified by: César Vecchio <cesar UNDERSTRIKE vecchio AT yahoo DOT com> | |
pkgname=med-openmpi | |
pkgver=3.0.8 | |
pkgrel=1 | |
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-openmpi' 'zlib') | |
makedepends=('gcc-fortran' 'coreutils' 'openmpi' 'swig') | |
provides=('med') | |
conflicts=('med') | |
replaces=('med') | |
backup=() | |
arch=('i686' 'x86_64') | |
source=("http://files.salome-platform.org/Salome/other/${pkgname//-openmpi/}-${pkgver}.tar.gz" | |
h5public_extract.patch) | |
md5sums=('4f514a352c9a256f678077eea99b75c5' | |
'156ab9456bab7b70237d0fc785b97e7c') | |
prepare() { | |
cd ${srcdir}/${pkgname//-openmpi/}-${pkgver}_SRC || return 1 | |
patch -Np1 -i ../h5public_extract.patch | |
} | |
build() { | |
cd ${srcdir}/${pkgname//-openmpi/}-${pkgver}_SRC || return 1 | |
PYTHON=/usr/bin/python2 MPIFC=mpif90 ./configure --prefix=/usr --with-swig=swig --datadir=/usr/share/med --with-med_int=int || return 1 | |
make || return 1 | |
} | |
package() { | |
cd ${srcdir}/${pkgname//-openmpi/}-${pkgver}_SRC || return 1 | |
make DESTDIR=${pkgdir} install || return 1 | |
# now move the testprograms to share, we don't want all the stuff in the bindir | |
cp -dpr --no-preserve=ownership ${pkgdir}/usr/bin/testc ${pkgdir}/usr/share/med/testc | |
cp -dpr --no-preserve=ownership ${pkgdir}/usr/bin/testf ${pkgdir}/usr/share/med/ | |
cp -dpr --no-preserve=ownership ${pkgdir}/usr/bin/unittests ${pkgdir}/usr/share/med/ | |
cp -dpr --no-preserve=ownership ${pkgdir}/usr/bin/usescases ${pkgdir}/usr/share/med/ | |
rm -r ${pkgdir}/usr/bin/{usescases,unittests,testf,testc} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment