blob: c45b9955c4a49843220b03b293f626bdbaa6a324 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Luke Labrie-Cleary <luke dot cleary at copenhagenatomics dot com>
pkgname=moab
pkgver=5.3.0
pkgrel=1
pkgdesc="The Mesh-Oriented datABase MOAB is a component for representing and evaluating mesh data"
arch=('x86_64')
url="https://bitbucket.org/fathomteam/moab"
license=('GPL3')
depends=(
python-numpy
blas
lapack
)
makedepends=(
git
eigen
netcdf
hdf5
cython
python-setuptools
"glibc>=2.34"
cmake
patch
)
provides=("${pkgname%-pkgver}")
conflicts=(moab-git)
source=('https://ftp.mcs.anl.gov/pub/fathom/moab-5.3.0.tar.gz' 'moab-5.3.0-p.1.patch')
md5sums=('7ae3967f297f7d6fddf38de576e98758' 'SKIP')
prepare() {
cd "$pkgname-$pkgver"
patch --forward --input="${srcdir}/moab-5.3.0-p.1.patch"
}
build() {
cd $srcdir
mkdir build && cd build
cmake ../$pkgname-$pkgver -DENABLE_HDF5=ON \
-DENABLE_NETCDF=ON \
-DENABLE_FORTRAN=OFF \
-DENABLE_BLASLAPACK=OFF \
-DENABLE_PYMOAB=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/opt/MOAB
_ccores=`cat /proc/cpuinfo |grep CPU|wc -l`
if [ "x$1" != "x" ]; then
_ccores=$1
fi
make -j ${_ccores}
}
package() {
cd $srcdir/build
make DESTDIR="$pkgdir/" install
cd pymoab
# check if pymoab already installed
if ! [ -d "/opt/MOAB/lib/python"* ]; then
python setup.py install --prefix=$pkgdir/opt/MOAB
fi
}
|