blob: 6a84adfaeb0a2473e279744801ebfb838e9506ca (
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
|
# Maintainer: Sigvald Marholm <marholm@marebakken.com>
# Based on dolfin-git, maintained by Lucas H. Gabrielli <heitzmann@gmail.com> and submitted by myles
_base=dolfin
pkgname=${_base}
pkgdesc="the C++ interface of FEniCS, providing a consistent PSE (Problem Solving Environment) for ordinary and partial differential equations."
pkgver=2018.1.0
pkgrel=1
arch=('i686' 'x86_64')
url="https://bitbucket.org/fenics-project/${_base}"
license=('LGPL3')
groups=('fenics')
conflicts=('dolfin-git')
depends=('cppunit'
'eigen'
'gl2ps'
'hdf5'
'python-ffc'
'petsc'
'suitesparse')
optdepends=('scotch: libraries for graph, mesh and hypergraph partitioning'
'slepc: eigenvalue problem solvers')
options=(!emptydirs)
source=(${pkgname}-${pkgver}.tar.gz::https://bitbucket.org/fenics-project/${_base}/downloads/${_base}-${pkgver}.tar.gz)
sha256sums=('5d1836df4dcc1d55f63ecc20635305a6d5b39cbfc63584b43ec2568452dc5e71')
export MAKEFLAGS="-j1"
build() {
cd ${srcdir}/${_base}-${pkgver}
[ -d build ] && rm -rf build
mkdir build
cd build
local py_interp=`python -c "import os,sys; print(os.path.realpath(sys.executable))"`
[ -n "$PETSC_DIR" ] && source /etc/profile.d/petsc.sh
[ -n "$SLEPC_DIR" ] && source /etc/profile.d/slepc.sh
# patch ../doc/parse_doxygen.py < ../../../parse_doxygen.patch
cmake ..\
-DCMAKE_INSTALL_PREFIX="${pkg}"/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPYTHON_EXECUTABLE="${py_interp}" \
-DCMAKE_SKIP_BUILD_RPATH=TRUE \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_TYPE="Release"
# -DDOLFIN_ENABLE_DOCS=FALSE \
make
}
package() {
cd ${srcdir}/${_base}-${pkgver}/build
make install DESTDIR="${pkgdir}"
}
# vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab
|