blob: d9a96d72d7767883a084e71083922f1257a7d958 (
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
|
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
pkgname=dolfin-git
pkgdesc="C++ interface of FEniCS for ordinary and partial differential equations."
pkgver=20210201
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/FEniCS/dolfinx"
license=('GPL3')
groups=('fenics-git')
depends=('cppunit' 'eigen' 'scotch' 'gl2ps' 'python-ffc-git' 'petsc' 'slepc' 'python-basix-git')
makedepends=('git' 'boost')
options=(!emptydirs)
source=("dolfin::git+https://github.com/FEniCS/dolfinx.git")
md5sums=('SKIP')
pkgver() {
cd dolfin
git log --format="%cd" --date=short -1 | sed 's/-//g'
}
build() {
cd dolfin/cpp
[ -d build ] && rm -rf build
mkdir build
cd build
[ -n "$PETSC_DIR" ] && source /etc/profile.d/petsc.sh
[ -e /etc/profile.d/slepc.sh ] && [ -n "$SLEPC_DIR" ] && source /etc/profile.d/slepc.sh
cmake ..\
-DCMAKE_INSTALL_PREFIX="${pkg}"/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_BUILD_RPATH=TRUE \
-DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_TYPE="Release"
make
}
package() {
cd dolfin/cpp/build
make install DESTDIR="${pkgdir}"
}
|