-
Notifications
You must be signed in to change notification settings - Fork 20
/
PKGBUILD
37 lines (31 loc) · 895 Bytes
/
PKGBUILD
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
35
36
37
pkgname=med
pkgver=4.1.1
pkgrel=7
arch=('x86_64')
pkgdesc="Library to store and exchange meshed data or computation results"
url="https://www.salome-platform.org/"
license=('LGPL')
depends=('hdf5' 'openmpi' 'python3')
makedepends=('cmake' 'swig')
source=("https://files.salome-platform.org/Salome/medfile/${pkgname}-${pkgver}.tar.gz"
'hdf5.patch')
md5sums=('7f3e223385a762a8690f7735397dfde9'
'35bb7099a24e6a8ee855beee004bc4ea')
prepare() {
cd ${pkgname}-${pkgver}_SRC
patch -p1 -i ${srcdir}/hdf5.patch
}
build() {
cmake -B build -S ${pkgname}-${pkgver}_SRC \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMEDFILE_USE_MPI=OFF \
-DMEDFILE_BUILD_STATIC_LIBS=OFF \
-DMEDFILE_INSTALL_DOC=OFF \
-DMEDFILE_BUILD_PYTHON=ON \
-DMEDFILE_BUILD_TESTS=OFF
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}