[arch-commits] Commit in med/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:12:46 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:12:46
  Author: felixonmars
Revision: 748559

archrelease: copy trunk to community-staging-x86_64

Added:
  med/repos/community-staging-x86_64/
  med/repos/community-staging-x86_64/PKGBUILD
    (from rev 748557, med/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: med/repos/community-staging-x86_64/PKGBUILD (from rev 748557, med/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 04:12:46 UTC (rev 748559)
@@ -0,0 +1,41 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Guilhem Saurel <guilhem at saurel.me>
+# Contributor: Michel Zou
+# Contributor: Oliver Goethel
+
+pkgname=med
+pkgver=4.1.0
+pkgrel=2
+pkgdesc='Generic pre- and post-processing platform for numerical simulation'
+url="https://www.salome-platform.org/downloads"
+license=(LGPL)
+arch=(x86_64)
+depends=(hdf5 python tk)
+makedepends=(cmake gcc-fortran ninja swig)
+source=("https://files.salome-platform.org/Salome/other/$pkgname-$pkgver.tar.gz"
+        'https://gist.githubusercontent.com/jedbrown/527ef81ff59a0dccf833da40fdd15a47/raw/7482f9a42fdd277f5f9cf0167ea7a3381032ca7a/hdf5-1.12.patch')
+sha256sums=('847db5d6fbc9ce6924cb4aea86362812c9a5ef6b9684377e4dd6879627651fce'
+            '82d28b6ae2ee6ceb3c6de9acb861a49741e2e759c7c556217f7d284216788206')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../hdf5-1.12.patch
+  sed -i 's/if H5_VERS_MINOR > 10/if 0/g' src/ci/MEDfileCompatibility.c
+}
+
+build() {
+  mkdir build
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DMEDFILE_BUILD_PYTHON=ON \
+    -DMEDFILE_BUILD_TESTS=OFF \
+    -DMEDFILE_INSTALL_DOC=OFF \
+    -GNinja
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+}



More information about the arch-commits mailing list