diff options
author | sL1pKn07 | 2022-08-06 22:29:11 +0200 |
---|---|---|
committer | sL1pKn07 | 2022-08-06 22:29:11 +0200 |
commit | 8605b59b270a8728b07d6da049b9b39ed1054687 (patch) | |
tree | e65ad454a76dcd929b625a2063dd91b899b25531 | |
download | aur-8605b59b270a8728b07d6da049b9b39ed1054687.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 11 | ||||
-rw-r--r-- | PKGBUILD | 65 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d0f406363c8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = med-openmpi-docs + pkgdesc = Generic pre- and post-processing platform for numerical simulation (openmpi version) (Documentation) + pkgver = 4.1.1 + pkgrel = 1 + url = https://www.salome-platform.org/downloads + arch = any + license = LGPL + makedepends = gcc-fortran + makedepends = hdf5-openmpi + makedepends = cmake + makedepends = doxygen + makedepends = graphviz + options = debug + source = http://files.salome-platform.org/Salome/other/med-4.1.1.tar.gz + source = hdf5-1.12.patch::https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/med/files/med-4.1.0-0003-build-against-hdf5-1.12.patch?id=350ea3e89d0e87e35a3a4b5f2ce92b55aae9d226 + sha256sums = dc2b5d54ebf0666e3ff2e974041d2ab0da906061323537023ab165d573389dd0 + sha256sums = 82d28b6ae2ee6ceb3c6de9acb861a49741e2e759c7c556217f7d284216788206 + +pkgname = med-openmpi-docs diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a68a0ca69370 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +*.tar +*.tar.* +*.zip +*.tgz +*.log +*.log.* +*.sig +*.jar +pkg/ +src/ +hdf5-1.12.patch diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5d40a9a9adcc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Original: Michele Mocciola <mickele> +# Contributor: Brice Méalier <mealier_brice@yahoo.fr> +# Contributor: César Vecchio <cesar UNDERSTRIKE vecchio AT yahoo DOT com> +# Contributor: valandil +# Contributor: nim65s +# Contributor: Joey Dumont <joey.dumont@gmail.com> +# Contributor: simonp +# Contributor: Martin Ortbauer <mortbauer@gmail.com> + +_pkgname=med +pkgname=med-openmpi-docs +pkgver=4.1.1 +pkgrel=1 +pkgdesc="Generic pre- and post-processing platform for numerical simulation (openmpi version) (Documentation)" +url="https://www.salome-platform.org/downloads" +license=('LGPL') +makedepends=('gcc-fortran' + 'hdf5-openmpi' + 'cmake' + 'doxygen' + 'graphviz' + ) +arch=('any') +source=("http://files.salome-platform.org/Salome/other/${_pkgname}-${pkgver}.tar.gz" + 'hdf5-1.12.patch::https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/med/files/med-4.1.0-0003-build-against-hdf5-1.12.patch?id=350ea3e89d0e87e35a3a4b5f2ce92b55aae9d226' + ) +sha256sums=('dc2b5d54ebf0666e3ff2e974041d2ab0da906061323537023ab165d573389dd0' + '82d28b6ae2ee6ceb3c6de9acb861a49741e2e759c7c556217f7d284216788206') +options=('debug') + +prepare() { + patch -d "${_pkgname}-${pkgver}_SRC" -p1 -i "${srcdir}/hdf5-1.12.patch" + sed 's/if H5_VERS_MINOR > 10/if 0/g' -i "${_pkgname}-${pkgver}_SRC/src/ci/MEDfileCompatibility.c" + # set libdir as cmake install path instead of share + sed 's|share/cmake|lib${LIB_SUFFIX}/cmake|g' -i "${_pkgname}-${pkgver}_SRC/CMakeLists.txt" +} + +build() { + CXX="mpicxx" \ + CC="mpicc" \ + FC="mpif90" \ + F9X="mpif90" \ + CFLAGS+=" -DH5_USE_18_API" \ + cmake -S "${_pkgname}-${pkgver}_SRC" -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMEDFILE_USE_MPI=ON \ + -DMEDFILE_BUILD_PYTHON=OFF \ + -DMEDFILE_BUILD_DOC=ON \ + -DMEDFILE_BUILD_TESTS=OFF \ + -DMEDFILE_INSTALL_DOC=ON \ + -DCMAKE_SKIP_RPATH=ON + + cmake --build build +} + +package() { + DESTDIR="${pkgdir}" cmake --install build + + # remove headers, binaries and libraries + rm -rf "${pkgdir}/usr/include" + rm -rf "${pkgdir}/usr/bin" + rm -rf "${pkgdir}/usr/lib" +} |