blob: e83c0f3c324042f067798f2cb28b42b53b8e5ef1 (
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
30
31
32
33
34
|
pkgname=medcoupling
pkgver=9.12.0
pkgrel=1
pkgdesc="Field data manipulation library"
url="https://www.salome-platform.org"
license=('LGPL2+')
depends=('med' 'libxml2' 'python-scipy' 'metis' 'scotch')
makedepends=('swig' 'salome-configuration' 'boost' 'git')
arch=('x86_64')
source=("git+https://git.salome-platform.org/gitpub/tools/medcoupling.git#tag=V9_12_0")
md5sums=('SKIP')
prepare () {
cd medcoupling
sed -i "s|FIND_PACKAGE(SalomeHDF5 REQUIRED)|find_package(HDF5 REQUIRED)|g" CMakeLists.txt
}
build() {
cd medcoupling
cmake -S medcoupling \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
-DCONFIGURATION_ROOT_DIR=/usr/share/salome/configuration \
-DMEDCOUPLING_BUILD_DOC=OFF -DMEDCOUPLING_BUILD_TESTS=OFF \
-DMEDCOUPLING_PARTITIONER_METIS=ON -DMEDCOUPLING_PARTITIONER_PARMETIS=ON \
-DMEDCOUPLING_USE_64BIT_IDS=OFF \
-DMEDCOUPLING_PARTITIONER_SCOTCH=ON -DMEDCOUPLING_INSTALL_CMAKE_LOCAL=/usr/lib/cmake \
-B build .
make -C build
}
package() {
make DESTDIR=${pkgdir} install -C medcoupling/build
rm -r "${pkgdir}"/usr/{adm_local,tests}
}
|