blob: c47a30a41e891845fc7a382c4e905054ee613a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
pkgname=('med')
pkgver=5.0.0
pkgrel=1
pkgdesc="MED: interoperable format for data interchange between mesh based solvers"
url="https://www.salome-platform.org/downloads"
license=('LGPL-3.0')
depends=('hdf5' 'tk' 'python')
makedepends=('gcc-fortran' 'swig' 'cmake')
optdepends=()
arch=('x86_64')
source=("https://files.salome-platform.org/Salome/medfile/med-${pkgver}.tar.bz2" "hdf5-1.14.patch")
sha256sums=('267e76d0c67ec51c10e3199484ec1508baa8d5ed845c628adf660529dce7a3d4' 'SKIP')
prepare() {
cd med-${pkgver}
patch -p1 -i "$srcdir/hdf5-1.14.patch"
}
build() {
cd med-${pkgver}
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DMEDFILE_BUILD_PYTHON=ON -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF .
make
}
package() {
cd ${pkgbase}-${pkgver}
make DESTDIR=${pkgdir} install
}
|